private static void OnDomainEventError(Guid queueId, EventErrorException ex) { if (_futures.TryRemove(queueId, out var future)) { future.SetError(ex); } }
public static void OnError(Guid queueId, EventErrorException ex) { if (Error != null) { Error(queueId, ex); } }