Exemplo n.º 1
0
        public async Task Benchmark()
        {
            var controller = _serviceProvider.GetService <SingleMediatRController>();
            var command    = new BenchMarkCommand
            {
                RequestTotal = 10,
                RequestId    = 9,
                RequestName  = "benchmark"
            };

            await controller.Process(command);
        }
Exemplo n.º 2
0
 public async Task <List <BenchMarkViewDto> > Process(BenchMarkCommand command)
 {
     return(await _mediator.Send(command));
 }