Exemplo n.º 1
0
 private CosmosStream(string id, string type, Version version, StreamReadStatus streamReadStatus,
                      ReadDirection readDirection, CosmosEvent[] events)
 {
     Id               = id;
     Type             = type;
     Version          = version;
     StreamReadStatus = streamReadStatus;
     ReadDirection    = readDirection;
     Events           = events;
     LastEventNumber  = Events.Length;
     NextEventNumber  = LastEventNumber + 1;
 }
Exemplo n.º 2
0
 public static CosmosStream Create(string id, string type, Version version, StreamReadStatus streamReadStatus,
                                   ReadDirection readDirection, CosmosEvent[] events) =>
 new CosmosStream(id, type, version, streamReadStatus, readDirection, events);