public async Task Benchmark() { var controller = _serviceProvider.GetService <SingleMediatRController>(); var command = new BenchMarkCommand { RequestTotal = 10, RequestId = 9, RequestName = "benchmark" }; await controller.Process(command); }
public async Task <List <BenchMarkViewDto> > Process(BenchMarkCommand command) { return(await _mediator.Send(command)); }