Show / Hide Table of Contents

Class EnsureAuthorizedMessageProcessingBehavior

A message processing behavior ensuring that only authorized calls execute the request.

Inheritance
System.Object
Loggable
MessagingBehaviorBase<IMessage>
EnsureAuthorizedMessageProcessingBehavior
Implements
ILoggable
IMessagingBehavior<IMessage>
IMessagingBehavior
Inherited Members
MessagingBehaviorBase<IMessage>.IMessagingBehavior.BeforeProcessAsync(IMessagingContext, CancellationToken)
MessagingBehaviorBase<IMessage>.IMessagingBehavior.AfterProcessAsync(IMessagingContext, CancellationToken)
MessagingBehaviorBase<IMessage>.AfterProcessAsync(IMessage, IMessagingContext, CancellationToken)
Loggable.Logger
Loggable.GetLogger()
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>, IMessagingBehavior

Constructors

| Improve this Doc View Source

EnsureAuthorizedMessageProcessingBehavior(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 Source

BeforeProcessAsync(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)

Implements

ILoggable
IMessagingBehavior<TMessage>
IMessagingBehavior

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX