Esempio n. 1
0
 public Task OnNextAsync(T item, StreamSequenceToken token)
 {
     if (token != null && !IsRewindable)
     {
         throw new ArgumentNullException("token", "Passing a non-null token to a non-rewindable IAsyncBatchObserver.");
     }
     return(queueAdapter.QueueMessageAsync(stream.StreamId.Guid, stream.StreamId.Namespace, item));
 }
 public Task OnNextAsync(T item, StreamSequenceToken token)
 {
     return(queueAdapter.QueueMessageAsync(stream.StreamId.Guid, stream.StreamId.Namespace, item, token, Runtime.RequestContext.Export()));
 }