Exemple #1
0
 public static Task PublishAsync <TEvent>(this IStreamPublisher streamPublisher, IEnumerable <TEvent> events, object messageContext)
     where TEvent : class, IEvent
 => streamPublisher.PublishAsync(events, messageContext : messageContext);
Exemple #2
0
 public static Task PublishAsync <TEvent>(this IStreamPublisher streamPublisher, TEvent @event, object messageContext)
     where TEvent : class, IEvent
 => streamPublisher.PublishAsync(@event, messageContext : messageContext);