Exemplo n.º 1
0
        public async Task <int> Handle(CreateManyLoggerCommand request, CancellationToken cancellationToken)
        {
            await _repository.AddManyAsync(request.Loggers, cancellationToken);

            _serviceList.RemoveAllItems();

            return(request.Loggers.Count);
        }