Class MessagingAuthorizationScopeProvider
Default implementation of an authorization scope provider for messages.
Inheritance
System.Object
MessagingAuthorizationScopeProvider
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Messaging.Authorization
Assembly: Kephas.Messaging.dll
Syntax
[OverridePriority(Priority.Low)]
public class MessagingAuthorizationScopeProvider : IAuthorizationScopeProvider
Methods
| Improve this Doc View SourceGetAuthorizationScopeAsync(IContext, CancellationToken)
Gets the authorization scope asynchronously.
Declaration
public Task<(object scope, bool canResolve)> GetAuthorizationScopeAsync(IContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IContext | context | The message processing context. |
System.Threading.CancellationToken | cancellationToken | Optional. the cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.Object, System.Boolean>> | An asynchronous result that yields the authorization scope. |