public TransactionBuilder WithEvent(Event @event) { var eventMessage = new EventEnvelopeBuilder().WithBody(@event).Build(); events.Add(eventMessage); return(this); }
public TransactionBuilder WithEvent(EventEnvelopeBuilder eventEnvelopeBuilder) { events.Add(eventEnvelopeBuilder.Build()); return(this); }