示例#1
0
 public Unsubscriber(ObservableStream <T> sink, IObserver <T> observer)
 {
     if (sink == null)
     {
         throw new ArgumentNullException(nameof(sink));
     }
     if (observer == null)
     {
         throw new ArgumentNullException(nameof(observer));
     }
     _stream   = sink;
     _observer = observer;
 }
 public Unsubscriber(ObservableStream <T> sink, IObserver <T> observer)
 {
     _stream   = sink ?? throw new ArgumentNullException(nameof(sink));
     _observer = observer ?? throw new ArgumentNullException(nameof(observer));
 }