Table of Contents

Class DeleteMediaItem.Handler

Namespace
Raytha.Application.MediaItems.Commands
Assembly
Raytha.Application.dll
public class DeleteMediaItem.Handler : IRequestHandler<DeleteMediaItem.Command, CommandResponseDto<ShortGuid>>
Inheritance
DeleteMediaItem.Handler
Implements
IRequestHandler<DeleteMediaItem.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(DeleteMediaItem.Command request, CancellationToken cancellationToken)

Parameters

request DeleteMediaItem.Command

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<CommandResponseDto<ShortGuid>>

Response from the request