dotnet-cqrs/OpenHarbor.CQRS.Abstractions/Security/IQueryAuthorizationService.cs

10 lines
278 B
C#
Raw Normal View History

using System;
using System.Threading;
using System.Threading.Tasks;
namespace OpenHarbor.CQRS.Abstractions.Security;
public interface IQueryAuthorizationService
{
Task<AuthorizationResult> IsAllowedAsync(Type queryType, CancellationToken cancellationToken = default);
}