Пример #1
0
 public TransactionWrite(Guid correlationId, long transactionId, string eventStreamId, Event[] events)
 {
     CorrelationId = correlationId.ToByteArray();
     TransactionId = transactionId;
     EventStreamId = eventStreamId;
     Events = events;
 }
Пример #2
0
            public WriteEvents(Guid correlationId, string eventStreamId, int expectedVersion, Event[] events)
            {
                Ensure.NotNull(events, "events");
                Ensure.Positive(events.Length, "events.Length");

                CorrelationId = correlationId.ToByteArray();
                EventStreamId = eventStreamId;
                ExpectedVersion = expectedVersion;
                Events = events;
            }