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
Methods
Handle(Query, CancellationToken)
Handles a request
public Task<IQueryResponseDto<ListResultDto<MediaItemDto>>> Handle(GetMediaItems.Query request, CancellationToken cancellationToken)
Parameters
request
GetMediaItems.QueryThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IQueryResponseDto<ListResultDto<MediaItemDto>>>
Response from the request