Class ConversationReportProcessManager
A ISaga<TAuthenticationToken> that acts as a process manager responding to several events and raising a command when a certain criteria is met.
Inheritance
Inherited Members
Namespace: Cqrs.Akka.Tests.Unit.Sagas
Assembly: Cqrs.Akka.Tests.Unit.dll
Syntax
public class ConversationReportProcessManager : AkkaSaga<Guid>, IInternalActor, IInitializableActor, ISaga<Guid>
Constructors
ConversationReportProcessManager(IDependencyResolver, ILogger, Guid)
Instantiates a new instance of ConversationReportProcessManager.
Declaration
public ConversationReportProcessManager(IDependencyResolver dependencyResolver, ILogger logger, Guid rsn)
Parameters
Type | Name | Description |
---|---|---|
IDependencyResolver | dependencyResolver | |
cdmdotnet.Logging.ILogger | logger | |
System.Guid | rsn |
Properties
DependencyResolver
The IDependencyResolver that resolves things.
Declaration
protected IDependencyResolver DependencyResolver { get; }
Property Value
Type | Description |
---|---|
IDependencyResolver |
IsLogicallyDeleted
Indicates if this ISaga<TAuthenticationToken> has been deleted.
Declaration
public bool IsLogicallyDeleted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Rsn
The Id
Declaration
public Guid Rsn { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
Apply(ConversationEnded)
Applies the event
to itself.
Declaration
public virtual void Apply(ConversationEnded event)
Parameters
Type | Name | Description |
---|---|---|
ConversationEnded | event | The ConversationEnded to apply |
Apply(HelloWorldRepliedTo)
Applies the event
to itself.
Declaration
public virtual void Apply(HelloWorldRepliedTo event)
Parameters
Type | Name | Description |
---|---|---|
HelloWorldRepliedTo | event | The HelloWorldRepliedTo to apply |
Apply(HelloWorldSaid)
Applies the event
to itself.
Declaration
public virtual void Apply(HelloWorldSaid event)
Parameters
Type | Name | Description |
---|---|---|
HelloWorldSaid | event | The HelloWorldSaid to apply |
GenerateCommand()
Generates and publishes a ICommand<TAuthenticationToken>.
Declaration
protected virtual void GenerateCommand()
Handle(ConversationEnded)
Responds to the provided event
.
Declaration
public virtual void Handle(ConversationEnded event)
Parameters
Type | Name | Description |
---|---|---|
ConversationEnded | event | The ConversationEnded to respond to or "handle" |
Handle(HelloWorldRepliedTo)
Responds to the provided event
.
Declaration
public virtual void Handle(HelloWorldRepliedTo event)
Parameters
Type | Name | Description |
---|---|---|
HelloWorldRepliedTo | event | The HelloWorldRepliedTo to respond to or "handle" |
Handle(HelloWorldSaid)
Responds to the provided event
.
Declaration
public virtual void Handle(HelloWorldSaid event)
Parameters
Type | Name | Description |
---|---|---|
HelloWorldSaid | event | The HelloWorldSaid to respond to or "handle" |