Exemplo n.º 1
0
 private async Task SetStreamInfo(StreamInfo value, bool createStreamWritable)
 {
     value.ValidateNonNull(nameof(StreamInfo));
     streamInfo = value;
     if (createStreamWritable)
         StreamWritable = await CreateStreamWritable();
     await OpenAndSetStream();
 }
Exemplo n.º 2
0
 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;
 }