Table of Contents

Class GetMediaItemById.Handler

Namespace
Raytha.Application.MediaItems.Queries
Assembly
Raytha.Application.dll
public class GetMediaItemById.Handler : IRequestHandler<GetMediaItemById.Query, IQueryResponseDto<MediaItemDto>>
Inheritance
GetMediaItemById.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<MediaItemDto>> Handle(GetMediaItemById.Query request, CancellationToken cancellationToken)

Parameters

request GetMediaItemById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<MediaItemDto>>

Response from the request