Class EnsureAuthorizedMessageProcessingBehavior
A message processing behavior ensuring that only authorized calls execute the request.
Inheritance
System.Object
    
    
    EnsureAuthorizedMessageProcessingBehavior
  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.Behaviors
Assembly: Kephas.Messaging.dll
Syntax
[MessagingBehavior(MessageTypeMatching.TypeOrHierarchy)]
[ProcessingPriority((Priority)-2147483638)]
public class EnsureAuthorizedMessageProcessingBehavior : MessagingBehaviorBase<IMessage>, ILoggable, IMessagingBehavior<IMessage>, IMessagingBehaviorConstructors
| Improve this Doc View SourceEnsureAuthorizedMessageProcessingBehavior(IAuthorizationService, IAuthorizationScopeService)
Initializes a new instance of the EnsureAuthorizedMessageProcessingBehavior class.
Declaration
public EnsureAuthorizedMessageProcessingBehavior(IAuthorizationService authorizationService, IAuthorizationScopeService authorizationScopeService)Parameters
| Type | Name | Description | 
|---|---|---|
| IAuthorizationService | authorizationService | The authorization service. | 
| IAuthorizationScopeService | authorizationScopeService | The authorization scope service. | 
Methods
| Improve this Doc View SourceBeforeProcessAsync(IMessage, IMessagingContext, CancellationToken)
Interception called before invoking the handler to process the message.
Declaration
public override Task BeforeProcessAsync(IMessage message, IMessagingContext context, CancellationToken token)Parameters
| Type | Name | Description | 
|---|---|---|
| IMessage | message | The message. | 
| IMessagingContext | context | The processing context. | 
| System.Threading.CancellationToken | token | The cancellation token. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | A task. | 
Overrides
Kephas.Messaging.Behaviors.MessagingBehaviorBase<Kephas.Messaging.IMessage>.BeforeProcessAsync(Kephas.Messaging.IMessage, Kephas.Messaging.IMessagingContext, System.Threading.CancellationToken)