Class SagaEvent<TAuthenticationToken>
An IEvent<TAuthenticationToken> used specifically by a ISaga<TAuthenticationToken>
Inheritance
Inherited Members
Namespace: Cqrs.Events
Assembly: Cqrs.dll
Syntax
public class SagaEvent<TAuthenticationToken> : ISagaEvent<TAuthenticationToken>, IEvent<TAuthenticationToken>, IMessageWithAuthenticationToken<TAuthenticationToken>, IMessage
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
Constructors
SagaEvent()
Instantiates a new instance of SagaEvent<TAuthenticationToken>.
Declaration
public SagaEvent()
SagaEvent(IEvent<TAuthenticationToken>)
Instantiates a new instance of SagaEvent<TAuthenticationToken> with the provided event
.
Declaration
public SagaEvent(IEvent<TAuthenticationToken> event)
Parameters
Type | Name | Description |
---|---|---|
IEvent<TAuthenticationToken> | event |
Properties
AuthenticationToken
The TAuthenticationToken
of the entity that triggered the event to be raised.
Declaration
[DataMember]
public TAuthenticationToken AuthenticationToken { get; set; }
Property Value
Type | Description |
---|---|
TAuthenticationToken |
Implements
CorrelationId
An identifier used to group together several IMessage. Any IMessage with the same CorrelationId were triggered by the same initiating request.
Declaration
[DataMember]
public Guid CorrelationId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Implements
Event
The IEvent<TAuthenticationToken> this ISagaEvent<TAuthenticationToken> encases.
Declaration
[DataMember]
public IEvent<TAuthenticationToken> Event { get; set; }
Property Value
Type | Description |
---|---|
IEvent<TAuthenticationToken> |
Implements
Frameworks
The frameworks this IMessage has been delivered to/sent via already.
Declaration
[DataMember]
public IEnumerable<string> Frameworks { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Implements
Id
The ID of the IEvent<TAuthenticationToken>
Declaration
[DataMember]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Implements
OriginatingFramework
The originating framework this message was sent from.
Declaration
[DataMember]
public string OriginatingFramework { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Implements
TimeStamp
The date and time the event was raised or published.
Declaration
[DataMember]
public DateTimeOffset TimeStamp { get; set; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset |
Implements
Version
The version of the IEvent<TAuthenticationToken>
Declaration
[DataMember]
public int Version { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |