Table of Contents

Class GetMediaItems.Handler

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

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

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

Parameters

request GetMediaItems.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ListResultDto<MediaItemDto>>>

Response from the request