Exemple #1
0
            public void Dispose()
            {
                var o = Interlocked.Exchange(ref observer, null);

                if (o != null)
                {
                    subject.Unsubscribe(o);
                    subject = null;
                }
            }
Exemple #2
0
 public Subscription(ExceptionHandlingSubject <T> subject, IObserver <T> observer)
 {
     this.subject  = subject;
     this.observer = observer;
 }