internal Batch(StreamEntity stream, List <RecordedEvent> events, StreamWriteOptions options) { this.stream = stream; this.events = events; this.options = options; partition = stream.Partition; }
public static StreamEntity InsertStreamEntity(this Partition partition, int version = 0) { var entity = new StreamEntity { PartitionKey = partition.PartitionKey, RowKey = Api.StreamRowKey, Version = version }; partition.Table.Execute(TableOperation.Insert(entity)); return(entity); }
static Stream From(Partition partition, StreamEntity entity) { return(new Stream(partition, entity.ETag, entity.Version, entity.Properties)); }
Stream BuildStream(DynamicTableEntity entity) => From(partition, StreamEntity.From(entity));
public Insert(Stream stream) { this.stream = stream.Entity(); partition = stream.Partition; }
public Replace(Stream stream, StreamProperties properties) { this.stream = stream.Entity(); this.stream.Properties = properties; partition = stream.Partition; }
static Stream From(Partition partition, StreamEntity entity) => new Stream(partition, entity.ETag, entity.Version, entity.Properties);
Stream BuildStream(DynamicTableEntity entity) { return(From(partition, StreamEntity.From(entity))); }
internal Batch(StreamEntity stream, List <RecordedEvent> events) { this.stream = stream; this.events = events; partition = stream.Partition; }