using System.Collections.Immutable; namespace Connected.Services.Authorization; public interface IServiceAuthorizationMiddleware : IMiddleware { Task> ResolveClaims(ImmutableArray claims); Task Authorize(ServiceAuthorizationMiddlewareArgs args) where TArgs : IDto; Task Authorize(ServiceAuthorizationMiddlewareArgs args, TEntity entity) where TArgs : IDto; }