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