Exemplo n.º 1
0
 private InMemoryEvent(string streamId, string eventId, long position,
                       string eventType, InMemoryEventData data, EventMetadata eventMetadata, DateTime createdTime)
 {
     StreamId      = streamId;
     EventId       = eventId;
     Position      = position;
     EventType     = eventType;
     Data          = data;
     EventMetadata = eventMetadata;
     CreatedTime   = createdTime;
 }
Exemplo n.º 2
0
 public static InMemoryEvent Create(string streamId, string eventId, long position,
                                    string eventType, InMemoryEventData data, EventMetadata eventMetadata, DateTime createdTime) =>
 new InMemoryEvent(streamId, eventId, position,
                   eventType, data, eventMetadata, createdTime);