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