コード例 #1
0
        public async Task Handle(MessageHandledDomainEvent notification, CancellationToken cancellationToken)
        {
            await Task.Run(() =>
            {
                if (notification == null)
                {
                    return;
                }

                this.logger.LogJournal(LogKeys.AppMessaging, $"[{notification.Message?.Identifier}] message handled : {notification.Message?.GetType().PrettyName()} (id={notification.Message?.Id}, service={notification.MessageScope}, origin={notification.Message?.Origin})", LogPropertyKeys.TrackReceiveMessage);
            }, cancellationToken).AnyContext();
        }
コード例 #2
0
 public bool CanHandle(MessageHandledDomainEvent notification)
 {
     return(true);
 }