Class DtoCommand<TAuthenticationToken, TDto>
A ICommand<TAuthenticationToken> for IDto objects
Inheritance
Inherited Members
Namespace: Cqrs.Commands
Assembly: Cqrs.dll
Syntax
[Serializable]
[DataContract]
public class DtoCommand<TAuthenticationToken, TDto> : ICommand<TAuthenticationToken>, IMessageWithAuthenticationToken<TAuthenticationToken>, IMessage where TDto : IDto
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of authentication token. |
TDto | The System.Type of IDto this command targets. |
Constructors
DtoCommand(Guid, TDto, TDto)
Instantiates a new instance of DtoCommand<TAuthenticationToken, TDto>
Declaration
public DtoCommand(Guid id, TDto original, TDto new)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
TDto | original | |
TDto | new |
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
ExpectedVersion
The expected version number the targeted IAggregateRoot<TAuthenticationToken> or ISaga<TAuthenticationToken> is expected to be.
Declaration
[DataMember]
public int ExpectedVersion { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
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 identifier of the command itself. In some cases this may be the IAggregateRoot<TAuthenticationToken> or ISaga<TAuthenticationToken> this command targets.
Declaration
[DataMember]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Implements
New
Gets or sets the new version of the TDto
.
Declaration
[DataMember]
public TDto New { get; set; }
Property Value
Type | Description |
---|---|
TDto |
Original
Gets or sets the original version of the TDto
.
Declaration
[DataMember]
public TDto Original { get; set; }
Property Value
Type | Description |
---|---|
TDto |
OriginatingFramework
The originating framework this message was sent from.
Declaration
[DataMember]
public string OriginatingFramework { get; set; }
Property Value
Type | Description |
---|---|
System.String |