Example #1
0
        /// <inheritdoc />
        public async Task <Unit> Handle(ExampleCommand request, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            try
            {
                await _eventBusService.PublishAsync(new ExampleEvent());

                throw new NotImplementedException();
            }
            catch (Exception e)
            {
                _logger.LogError(e, "Error: {Message}", e.Message);
                throw;
            }
        }