Switched to database scheme seperation from MoonCores SingleDb. Updated mooncore versions. Updating to correct Async naming
This commit is contained in:
@@ -12,5 +12,5 @@ public interface IAuthCheckExtension
|
||||
/// </summary>
|
||||
/// <param name="principal">The principal of the current signed-in user</param>
|
||||
/// <returns>An array of claim responses which gets added to the list of claims to send to the frontend</returns>
|
||||
public Task<AuthClaimResponse[]> GetFrontendClaims(ClaimsPrincipal principal);
|
||||
public Task<AuthClaimResponse[]> GetFrontendClaimsAsync(ClaimsPrincipal principal);
|
||||
}
|
||||
@@ -4,6 +4,6 @@ namespace Moonlight.ApiServer.Interfaces;
|
||||
|
||||
public interface IMetric
|
||||
{
|
||||
public Task Initialize(Meter meter);
|
||||
public Task Run(IServiceProvider provider, CancellationToken cancellationToken);
|
||||
public Task InitializeAsync(Meter meter);
|
||||
public Task RunAsync(IServiceProvider provider, CancellationToken cancellationToken);
|
||||
}
|
||||
@@ -12,7 +12,7 @@ public interface IUserAuthExtension
|
||||
/// <param name="user">The current user this method is called for</param>
|
||||
/// <param name="principal">The principal after being processed by moonlight itself</param>
|
||||
/// <returns>The result of the synchronisation. Returning false will immediately invalidate the sign-in and no other extensions will be called</returns>
|
||||
public Task<bool> Sync(User user, ClaimsPrincipal principal);
|
||||
public Task<bool> SyncAsync(User user, ClaimsPrincipal principal);
|
||||
|
||||
/// <summary>
|
||||
/// IMPORTANT: Please note that heavy operations should not occur in this method as it will be called for every request
|
||||
@@ -21,5 +21,5 @@ public interface IUserAuthExtension
|
||||
/// <param name="user">The current user this method is called for</param>
|
||||
/// <param name="principal">The principal after being processed by moonlight itself</param>
|
||||
/// <returns>The result of the validation. Returning false will immediately invalidate the users session and no other extensions will be called</returns>
|
||||
public Task<bool> Validate(User user, ClaimsPrincipal principal);
|
||||
public Task<bool> ValidateAsync(User user, ClaimsPrincipal principal);
|
||||
}
|
||||
@@ -5,6 +5,6 @@ namespace Moonlight.ApiServer.Interfaces;
|
||||
|
||||
public interface IUserDeleteHandler
|
||||
{
|
||||
public Task<UserDeleteValidationResult> Validate(User user);
|
||||
public Task Delete(User user, bool force);
|
||||
public Task<UserDeleteValidationResult> ValidateAsync(User user);
|
||||
public Task DeleteAsync(User user, bool force);
|
||||
}
|
||||
Reference in New Issue
Block a user