Class AkkaCommandBusProxy<TAuthenticationToken>
A ICommandPublisher<TAuthenticationToken> that proxies ICommand<TAuthenticationToken> to the Akka.Actor.IActorRef which acts as a single point of all handler resolutions.
Inheritance
System.Object
AkkaCommandBusProxy<TAuthenticationToken>
Inherited Members
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.Commands
Assembly: Cqrs.Akka.dll
Syntax
public class AkkaCommandBusProxy<TAuthenticationToken> : IAkkaCommandPublisherProxy<TAuthenticationToken>, ICommandPublisher<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
Constructors
AkkaCommandBusProxy(IDependencyResolver, ICorrelationIdHelper, IAuthenticationTokenHelper<TAuthenticationToken>)
Instantiates a new instance of AkkaCommandBusProxy<TAuthenticationToken>.
Declaration
public AkkaCommandBusProxy(IDependencyResolver dependencyResolver, ICorrelationIdHelper correlationIdHelper, IAuthenticationTokenHelper<TAuthenticationToken> authenticationTokenHelper)
Parameters
Type | Name | Description |
---|---|---|
IDependencyResolver | dependencyResolver | |
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> |
CommandHandlerResolver
Gets the Akka.Actor.IActorRef that we send/proxy the command to.
Declaration
protected IActorRef CommandHandlerResolver { get; }
Property Value
Type | Description |
---|---|
Akka.Actor.IActorRef |
CorrelationIdHelper
Gets or sets the cdmdotnet.Logging.ICorrelationIdHelper.
Declaration
protected ICorrelationIdHelper CorrelationIdHelper { get; }
Property Value
Type | Description |
---|---|
cdmdotnet.Logging.ICorrelationIdHelper |
Methods
Publish<TCommand>(TCommand)
Publishes the provided command
on the command bus.
Declaration
public virtual void Publish<TCommand>(TCommand command)where TCommand : ICommand<TAuthenticationToken>
Parameters
Type | Name | Description |
---|---|---|
TCommand | command |
Type Parameters
Name | Description |
---|---|
TCommand |
Implements
Publish<TCommand>(IEnumerable<TCommand>)
Publishes the provided commands
on the command bus.
Declaration
public virtual void Publish<TCommand>(IEnumerable<TCommand> commands)where TCommand : ICommand<TAuthenticationToken>
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TCommand> | commands |
Type Parameters
Name | Description |
---|---|
TCommand |