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

10 lines
282 B
C#
Raw Normal View History

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