public void ConsumeNext() { try { disp.Disposable = stream.MoveNext().Subscribe(this); } catch (Exception ex) { stream.Dispose(); rootObserver.OnError(ex); } }
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();
/// <summary> /// /// </summary> void IDisposable.Dispose() { m_Target.Dispose(); GC.SuppressFinalize(this); }
public void Dispose() { inner.Dispose(); }
public void Dispose() { originalStreamReader.Dispose(); }
public void Dispose() { _requestStream?.Dispose(); }
/// <summary> /// /// </summary> public void Dispose() { m_StreamReader.Dispose(); }
public void Dispose() { _reader.Dispose(); }
/// <summary> /// /// </summary> public void Dispose() { m_StreamReader.Dispose(); (m_Current as IDisposable)?.Dispose(); }