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