public void ConsumeNext()
 {
     try
     {
         disp.Disposable = stream.MoveNext().Subscribe(this);
     }
     catch (Exception ex)
     {
         stream.Dispose();
         rootObserver.OnError(ex);
     }
 }
예제 #2
0
 static IObservable <Unit> RecursiveActionAsync <T>(IAsyncStreamReader <T> stream, Func <T, IObservable <Unit> > asyncAction)
 {
     return(stream.MoveNext().ContinueWith(x =>
     {
         if (x)
         {
             return asyncAction(stream.Current)
             .ContinueWith(_ => RecursiveActionAsync(stream, asyncAction));
         }
         else
         {
             stream.Dispose();
             return Observable.ReturnUnit();
         }
     }));
 }
 public void Dispose() => _reader.Dispose();
예제 #4
0
 /// <summary>
 ///
 /// </summary>
 void IDisposable.Dispose()
 {
     m_Target.Dispose();
     GC.SuppressFinalize(this);
 }
예제 #5
0
 public void Dispose()
 {
     inner.Dispose();
 }
 public void Dispose()
 {
     originalStreamReader.Dispose();
 }
예제 #7
0
 public void Dispose()
 {
     _requestStream?.Dispose();
 }
 /// <summary>
 ///
 /// </summary>
 public void Dispose()
 {
     m_StreamReader.Dispose();
 }
예제 #9
0
 public void Dispose()
 {
     _reader.Dispose();
 }
예제 #10
0
 /// <summary>
 ///
 /// </summary>
 public void Dispose()
 {
     m_StreamReader.Dispose();
     (m_Current as IDisposable)?.Dispose();
 }