Exemplo n.º 1
0
 public Task <SearchQueryResult <HangfireJobQueryResult> > Handle(SearchHangfireJobsQuery request, CancellationToken cancellationToken)
 {
     return(_hangfireQueryRepository.SearchJobs(new SearchHangfireJobsParameter
     {
         Count = request.Count,
         StartIndex = request.StartIndex
     }, cancellationToken));
 }
Exemplo n.º 2
0
        public async Task <IActionResult> SearchHangfireJobs([FromBody] SearchHangfireJobsQuery parameter, CancellationToken cancellationToken)
        {
            var result = await _mediator.Send(parameter, cancellationToken);

            return(new OkObjectResult(result));
        }