Class GetViewById.Handler
- Namespace
- Raytha.Application.Views.Queries
- Assembly
- Raytha.Application.dll
public class GetViewById.Handler : IRequestHandler<GetViewById.Query, IQueryResponseDto<ViewDto>>
- Inheritance
-
GetViewById.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbContext)
public Handler(IRaythaDbContext db)
Parameters
Methods
Handle(Query, CancellationToken)
Handles a request
public Task<IQueryResponseDto<ViewDto>> Handle(GetViewById.Query request, CancellationToken cancellationToken)
Parameters
request
GetViewById.QueryThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IQueryResponseDto<ViewDto>>
Response from the request