Class CreateTheme.Handler
- Namespace
- Raytha.Application.Themes.Commands
- Assembly
- Raytha.Application.dll
public class CreateTheme.Handler : IRequestHandler<CreateTheme.Command, CommandResponseDto<ShortGuid>>
- Inheritance
-
CreateTheme.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbContext, IFileStorageProvider)
public Handler(IRaythaDbContext db, IFileStorageProvider fileStorageProvider)
Parameters
db
IRaythaDbContextfileStorageProvider
IFileStorageProvider
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(CreateTheme.Command request, CancellationToken cancellationToken)
Parameters
request
CreateTheme.CommandThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<CommandResponseDto<ShortGuid>>
Response from the request