Table of Contents

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
IRequestHandler<CreateTheme.Command, CommandResponseDto<ShortGuid>>
Inherited Members

Constructors

Handler(IRaythaDbContext, IFileStorageProvider)

public Handler(IRaythaDbContext db, IFileStorageProvider fileStorageProvider)

Parameters

db IRaythaDbContext
fileStorageProvider IFileStorageProvider

Methods

Handle(Command, CancellationToken)

Handles a request

public Task<CommandResponseDto<ShortGuid>> Handle(CreateTheme.Command request, CancellationToken cancellationToken)

Parameters

request CreateTheme.Command

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<CommandResponseDto<ShortGuid>>

Response from the request