Example #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);
            });
        }
Example #2
0
 public bool CanHandle(MessageHandledDomainEvent notification)
 {
     return(true);
 }