Esempio n. 1
0
 /// <summary>
 /// Creates a new stream.
 /// </summary>
 /// <param name="storeEvents">The store events instance.</param>
 /// <param name="bucketId">The value which uniquely identifies bucket the stream belongs to.</param>
 /// <param name="streamId">The value which uniquely identifies the stream within the bucket to be created.</param>
 /// <param name="cancellationToken"></param>
 /// <returns>An empty stream.</returns>
 public static Task <IEventStream> CreateStreamAsync(this IStoreEvents storeEvents, string bucketId, Guid streamId, CancellationToken cancellationToken)
 {
     EnsureStoreEventsNotNull(storeEvents);
     return(storeEvents.CreateStreamAsync(bucketId, streamId.ToString(), cancellationToken));
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new stream.
 /// </summary>
 /// <param name="storeEvents">The store events instance.</param>
 /// <param name="streamId">The value which uniquely identifies the stream to be created.</param>
 /// <param name="cancellationToken"></param>
 /// <returns>An empty stream.</returns>
 public static Task <IEventStream> CreateStreamAsync(this IStoreEvents storeEvents, string streamId, CancellationToken cancellationToken)
 {
     EnsureStoreEventsNotNull(storeEvents);
     return(storeEvents.CreateStreamAsync(Bucket.Default, streamId, cancellationToken));
 }