Пример #1
0
        public async Task HandleAsync(T evt, IEventActions eventActions)
        {
            try
            {
                AddTelemetryProperties(evt);
                await ProcessAsync(evt, eventActions).ConfigureAwait(false);

                if (evt is ICorrelationEvent correlationEvent)
                {
                    await _correlationEventHandler.Handle(correlationEvent).ConfigureAwait(false);
                }
            }
            catch (Exception ex)
            {
                _exceptionLogger.Log(ex);
                throw;
            }
        }
Пример #2
0
 public abstract Task ProcessAsync(T evt, IEventActions eventActions);