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