Class SimpleEvent<TAuthenticationToken>
An IEvent<TAuthenticationToken> that holds the event data in Message.
Inheritance
System.Object
SimpleEvent<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.EventStore
Assembly: Cqrs.EventStore.dll
Syntax
public class SimpleEvent<TAuthenticationToken> : IEvent<TAuthenticationToken>, IMessageWithAuthenticationToken<TAuthenticationToken>, IMessage
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
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
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
Message
A serialised version of one or more instances of IEvent<TAuthenticationToken>.
Declaration
[DataMember]
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |