Moves media library scanning to domain layer

This commit is contained in:
BinaryAlley committed 2025-02-16 21:45:26 +02:00
1 parent 8b51abe0b2
commit c4246d2e69
209 files changed
+3793 -641

No files matched your search

@@ -18,7 +18,7 @@ public interface IAuthorizationService
/// <summary>
/// Determines whether the specified user has a specific permission.
/// </summary>
/// <param name="userId">The Id of the user for whom to check the permission.</param>
/// <param name="userId">The unique identifier of the user for whom to check the permission.</param>
/// <param name="permission">The permission to check.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns><see langword="true"/> if the user has the specified permission, <see langword="false"/> otherwise.</returns>
@@ -27,7 +27,7 @@ public interface IAuthorizationService
/// <summary>
/// Determines whether the specified user belongs to a specific role.
/// </summary>
/// <param name="userId">The Id of the user for whom to check the role.</param>
/// <param name="userId">The unique identifier of the user for whom to check the role.</param>
/// <param name="role">The role to check.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns><see langword="true"/> if the user is in the specified role, <see langword="false"/> otherwise.</returns>
@@ -37,7 +37,7 @@ public interface IAuthorizationService
/// Evaluates whether the specified user meets the conditions defined in the specified authorization policy.
/// </summary>
/// <typeparam name="TAuthorizationPolicy">The type of authorization policy to evaluate.</typeparam>
/// <param name="userId">The Id of the user for whom to evaluate the policy.</param>
/// <param name="userId">The unique identifier of the user for whom to evaluate the policy.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns><see langword="true"/> if the user satisfies the policy, <see langword="false"/> otherwise.</returns>
Task<bool> EvaluatePolicyAsync<TAuthorizationPolicy>(Guid userId, CancellationToken cancellationToken) where TAuthorizationPolicy : IAuthorizationPolicy;
@@ -45,7 +45,7 @@ public interface IAuthorizationService
/// <summary>
/// Retrieves all authorization roles and permissions of a user identified by <paramref name="userId"/>.
/// </summary>
/// <param name="userId">The id of the user for whom to retrieve the authorization roles and permissions.</param>
/// <param name="userId">The unique identifier of the user for whom to retrieve the authorization roles and permissions.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns>An <see cref="ErrorOr{TValue}"/> containing either a <see cref="UserAuthorizationEntity"/>, or an error.</returns>
Task<ErrorOr<UserAuthorizationEntity>> GetUserAuthorizationAsync(Guid userId, CancellationToken cancellationToken);