dotnet-cqrs/Svrnty.CQRS.Abstractions/Security/ICommandAuthorizationService.cs

10 lines
278 B
C#

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