示例#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);
        }
示例#2
0
 public async Task <List <BenchMarkViewDto> > Process(BenchMarkCommand command)
 {
     return(await _mediator.Send(command));
 }