Table of Contents

Class GetMediaItemByObjectKey.Handler

Namespace
Raytha.Application.MediaItems.Queries
Assembly
Raytha.Application.dll
public class GetMediaItemByObjectKey.Handler : IRequestHandler<GetMediaItemByObjectKey.Query, IQueryResponseDto<MediaItemDto>>
Inheritance
GetMediaItemByObjectKey.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(GetMediaItemByObjectKey.Query request, CancellationToken cancellationToken)

Parameters

request GetMediaItemByObjectKey.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<MediaItemDto>>

Response from the request