示例#1
0
        public async Task <TResponse> Handle(TRequest message)
        {
            _logger.LogInformation($"Executing command {_inner.GetType().FullName}");

            var response = await _inner.Handle(message);

            _logger.LogInformation($"Command executed successfully {_inner.GetType().FullName}");

            return(response);
        }
 public AsyncLoggingRequestHandler(IAsyncRequestHandler <TRequest, TResponse> innerHandler)
 {
     _innerHander = innerHandler;
     _log         = LogManager.GetLogger(innerHandler.GetType());
 }