Show / Hide Table of Contents

Class EnsureAuthenticatedBrokeredMessagingBehavior

A distributed message processing behavior ensuring that the bearer token is transformed to an .

Inheritance
System.Object
Loggable
MessagingBehaviorBase<IBrokeredMessage>
EnsureAuthenticatedBrokeredMessagingBehavior
Implements
ILoggable
IMessagingBehavior<IBrokeredMessage>
IMessagingBehavior
Inherited Members
MessagingBehaviorBase<IBrokeredMessage>.IMessagingBehavior.BeforeProcessAsync(IMessagingContext, CancellationToken)
MessagingBehaviorBase<IBrokeredMessage>.IMessagingBehavior.AfterProcessAsync(IMessagingContext, CancellationToken)
MessagingBehaviorBase<IBrokeredMessage>.AfterProcessAsync(IBrokeredMessage, 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.Distributed.Behaviors
Assembly: Kephas.Messaging.dll
Syntax
[MessagingBehavior(MessageTypeMatching.TypeOrHierarchy)]
[ProcessingPriority(Priority.Highest)]
public class EnsureAuthenticatedBrokeredMessagingBehavior : MessagingBehaviorBase<IBrokeredMessage>, ILoggable, IMessagingBehavior<IBrokeredMessage>, IMessagingBehavior

Constructors

| Improve this Doc View Source

EnsureAuthenticatedBrokeredMessagingBehavior(IAuthenticationService)

Initializes a new instance of the EnsureAuthenticatedBrokeredMessagingBehavior class.

Declaration
public EnsureAuthenticatedBrokeredMessagingBehavior(IAuthenticationService authenticationService)
Parameters
Type Name Description
IAuthenticationService authenticationService

The authentication service.

Methods

| Improve this Doc View Source

BeforeProcessAsync(IBrokeredMessage, IMessagingContext, CancellationToken)

Interception called before invoking the handler to process the message.

Declaration
public override Task BeforeProcessAsync(IBrokeredMessage message, IMessagingContext context, CancellationToken token)
Parameters
Type Name Description
IBrokeredMessage 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.Distributed.IBrokeredMessage>.BeforeProcessAsync(Kephas.Messaging.Distributed.IBrokeredMessage, 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