Class AkkaEventHandler<TAuthenticationToken>
Executes event handler methods.
Inheritance
System.Object
Akka.Actor.ActorBase
Akka.Actor.UntypedActor
Akka.Actor.ReceiveActor
AkkaEventHandler<TAuthenticationToken>
Inherited Members
Akka.Actor.ReceiveActor.Akka.Actor.Internal.IInitializableActor.Init()
Akka.Actor.ReceiveActor.OnReceive(System.Object)
Akka.Actor.ReceiveActor.Become(System.Action)
Akka.Actor.ReceiveActor.BecomeStacked(System.Action)
Akka.Actor.ReceiveActor.Become(System.Action, System.Boolean)
Akka.Actor.ReceiveActor.Receive<T>(System.Func<T, System.Threading.Tasks.Task>)
Akka.Actor.ReceiveActor.Receive<T>(System.Action<T>, System.Predicate<T>)
Akka.Actor.ReceiveActor.Receive<T>(System.Predicate<T>, System.Action<T>)
Akka.Actor.ReceiveActor.Receive(System.Type, System.Action<System.Object>, System.Predicate<System.Object>)
Akka.Actor.ReceiveActor.Receive(System.Type, System.Predicate<System.Object>, System.Action<System.Object>)
Akka.Actor.ReceiveActor.Receive<T>(System.Func<T, System.Boolean>)
Akka.Actor.ReceiveActor.Receive(System.Type, System.Func<System.Object, System.Boolean>)
Akka.Actor.ReceiveActor.ReceiveAny(System.Action<System.Object>)
Akka.Actor.UntypedActor.Receive(System.Object)
Akka.Actor.UntypedActor.RunTask(System.Action)
Akka.Actor.UntypedActor.RunTask(System.Func<System.Threading.Tasks.Task>)
Akka.Actor.UntypedActor.Become(Akka.Actor.UntypedReceive, System.Boolean)
Akka.Actor.UntypedActor.Become(Akka.Actor.UntypedReceive)
Akka.Actor.UntypedActor.BecomeStacked(Akka.Actor.UntypedReceive)
Akka.Actor.UntypedActor.Context
Akka.Actor.ActorBase.AroundReceive(Akka.Actor.Receive, System.Object)
Akka.Actor.ActorBase.Unhandled(System.Object)
Akka.Actor.ActorBase.Become(Akka.Actor.Receive, System.Boolean)
Akka.Actor.ActorBase.Become(Akka.Actor.Receive)
Akka.Actor.ActorBase.BecomeStacked(Akka.Actor.Receive)
Akka.Actor.ActorBase.UnbecomeStacked()
Akka.Actor.ActorBase.Unbecome()
Akka.Actor.ActorBase.SetReceiveTimeout(System.Nullable<System.TimeSpan>)
Akka.Actor.ActorBase.SupervisorStrategy()
Akka.Actor.ActorBase.AroundPreRestart(System.Exception, System.Object)
Akka.Actor.ActorBase.AroundPreStart()
Akka.Actor.ActorBase.PreStart()
Akka.Actor.ActorBase.AroundPostRestart(System.Exception, System.Object)
Akka.Actor.ActorBase.PreRestart(System.Exception, System.Object)
Akka.Actor.ActorBase.PostRestart(System.Exception)
Akka.Actor.ActorBase.AroundPostStop()
Akka.Actor.ActorBase.PostStop()
Akka.Actor.ActorBase.Sender
Akka.Actor.ActorBase.Self
Akka.Actor.ActorBase.Akka.Actor.IInternalActor.ActorContext
Akka.Actor.ActorBase.EmptyReceive
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Akka.Events
Assembly: Cqrs.Akka.dll
Syntax
public abstract class AkkaEventHandler<TAuthenticationToken> : ReceiveActor, IInternalActor, IInitializableActor
Type Parameters
Name | Description |
---|---|
TAuthenticationToken |
Constructors
AkkaEventHandler(ILogger, ICorrelationIdHelper, IAuthenticationTokenHelper<TAuthenticationToken>)
Instantiates a new instance of AkkaEventHandler<TAuthenticationToken>.
Declaration
protected AkkaEventHandler(ILogger logger, ICorrelationIdHelper correlationIdHelper, IAuthenticationTokenHelper<TAuthenticationToken> authenticationTokenHelper)
Parameters
Type | Name | Description |
---|---|---|
cdmdotnet.Logging.ILogger | logger | |
cdmdotnet.Logging.ICorrelationIdHelper | correlationIdHelper | |
IAuthenticationTokenHelper<TAuthenticationToken> | authenticationTokenHelper |
Properties
AuthenticationTokenHelper
Gets or sets the IAuthenticationTokenHelper<TAuthenticationToken>.
Declaration
protected IAuthenticationTokenHelper<TAuthenticationToken> AuthenticationTokenHelper { get; }
Property Value
Type | Description |
---|---|
IAuthenticationTokenHelper<TAuthenticationToken> |
CorrelationIdHelper
Gets or sets the cdmdotnet.Logging.ICorrelationIdHelper.
Declaration
protected ICorrelationIdHelper CorrelationIdHelper { get; }
Property Value
Type | Description |
---|---|
cdmdotnet.Logging.ICorrelationIdHelper |
Logger
Gets or sets the cdmdotnet.Logging.ILogger.
Declaration
protected ILogger Logger { get; set; }
Property Value
Type | Description |
---|---|
cdmdotnet.Logging.ILogger |
Methods
Execute<TEvent>(Action<TEvent>, TEvent)
Execute the provided handler
passing it the event
,
then calls Akka.Actor.ActorRefImplicitSenderExtensions.Tell(Akka.Actor.IActorRef,System.Object).
Declaration
protected virtual void Execute<TEvent>(Action<TEvent> handler, TEvent event)where TEvent : IEvent<TAuthenticationToken>
Parameters
Type | Name | Description |
---|---|---|
System.Action<TEvent> | handler | |
TEvent | event |
Type Parameters
Name | Description |
---|---|
TEvent |