Ejemplo n.º 1
0
        public async Task Handle(MessageHandledDomainEvent notification, CancellationToken cancellationToken)
        {
            await Task.Run(() =>
            {
                if (notification == null)
                {
                    return;
                }

                this.logger.LogJournal(LogKeys.Messaging, $"[{notification.Message?.Identifier}] handle (type={notification.Message?.GetType().PrettyName()}, id={notification.Message?.Id}, service={notification.MessageScope}, origin={notification.Message?.Origin})", LogEventPropertyKeys.TrackReceiveMessage);
            });
        }
Ejemplo n.º 2
0
 public bool CanHandle(MessageHandledDomainEvent notification)
 {
     return(true);
 }