Пример #1
0
 internal _StateStreamSubscription(
     _ForwardingStream <T, T> stream,
     Action <T> onData, Action <object, string> onError, Action onDone, bool cancelOnError, object _sharedState
     )
     : base(stream, onData, onError, onDone, cancelOnError)
 {
     this._sharedState = _sharedState;
 }
Пример #2
0
 internal _ForwardingStreamSubscription(_ForwardingStream <S, T> _stream,
                                        Action <T> onData, Action <object, string> onError, Action onDone, bool cancelOnError
                                        )
     : base(onData, onError, onDone, cancelOnError)
 {
     this._stream  = _stream;
     _subscription = _stream._source
                     .listen(_handleData, onError: _handleError, onDone: _handleDone);
 }