Class AkkaSagaProxy<TAuthenticationToken, TSaga>
A remote proxy to an ISaga<TAuthenticationToken>.
Inheritance
System.Object
AkkaSagaProxy<TAuthenticationToken, TSaga>
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.Domain
Assembly: Cqrs.Akka.dll
Syntax
public class AkkaSagaProxy<TAuthenticationToken, TSaga> : IAkkaSagaProxy<TSaga>, ISaga<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of authentication token. |
TSaga | The System.Type of ISaga<TAuthenticationToken>. |
Properties
ActorReference
Gets the Akka.Actor.IActorRef.
Declaration
public IActorRef ActorReference { get; }
Property Value
Type | Description |
---|---|
Akka.Actor.IActorRef |
Implements
Id
The identifier of the ISaga<TAuthenticationToken>.
Declaration
public virtual Guid Id { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Implements
Saga
Gets the TSaga
.
Declaration
public TSaga Saga { get; protected set; }
Property Value
Type | Description |
---|---|
TSaga |
Implements
Version
The current version of this ISaga<TAuthenticationToken>.
Declaration
public virtual int Version { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
Methods
GetUncommittedChanges()
Get all applied changes that haven't yet been committed.
Declaration
public virtual IEnumerable<ISagaEvent<TAuthenticationToken>> GetUncommittedChanges()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ISagaEvent<TAuthenticationToken>> |
Implements
LoadFromHistory(IEnumerable<ISagaEvent<TAuthenticationToken>>)
Apply all the IEvent<TAuthenticationToken> in history
using event replay to this instance.
Declaration
public virtual void LoadFromHistory(IEnumerable<ISagaEvent<TAuthenticationToken>> history)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ISagaEvent<TAuthenticationToken>> | history |
Implements
MarkChangesAsCommitted()
Mark all applied changes as committed, increment Version and flush the internal collection of changes.
Declaration
public virtual void MarkChangesAsCommitted()