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