private async Task SetStreamInfo(StreamInfo value, bool createStreamWritable) { value.ValidateNonNull(nameof(StreamInfo)); streamInfo = value; if (createStreamWritable) StreamWritable = await CreateStreamWritable(); await OpenAndSetStream(); }
public async static Task<StreamableRecord> Create( uint id, Guid sourceId, ITimeInterval temporalLocation, StreamInfo streamInfo, ISpatialLocation spatialLocation = null) { var record = new StreamableRecord(id, sourceId, temporalLocation, spatialLocation); await record.SetStreamInfo(streamInfo, true); return record; }