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