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