Class DtoCommandHandler<TAuthenticationToken, TDto>
A ICommandHandle for working with DtoCommand<TAuthenticationToken, TDto>.
Inheritance
System.Object
DtoCommandHandler<TAuthenticationToken, TDto>
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.Commands
Assembly: Cqrs.dll
Syntax
public class DtoCommandHandler<TAuthenticationToken, TDto> : ICommandHandler<TAuthenticationToken, DtoCommand<TAuthenticationToken, TDto>>, IMessageHandler<DtoCommand<TAuthenticationToken, TDto>>, ICommandHandle, IHandler where TDto : IDto
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of authentication token. |
TDto | The System.Type of IDto this command targets. |
Constructors
DtoCommandHandler(IUnitOfWork<TAuthenticationToken>)
Instantiates a new instance of DtoCommandHandler<TAuthenticationToken, TDto>
Declaration
public DtoCommandHandler(IUnitOfWork<TAuthenticationToken> unitOfWork)
Parameters
Type | Name | Description |
---|---|---|
IUnitOfWork<TAuthenticationToken> | unitOfWork |
Methods
Handle(DtoCommand<TAuthenticationToken, TDto>)
Responds to the provided message
.
Declaration
public void Handle(DtoCommand<TAuthenticationToken, TDto> message)
Parameters
Type | Name | Description |
---|---|---|
DtoCommand<TAuthenticationToken, TDto> | message | The DtoCommand<TAuthenticationToken, TDto> to respond to or "handle" |