Example #1
0
 public void Dispose()
 {
     observer?.OnCompleted();
     observable?.Unsubscribe(observer, channel);
     observable = null;
     observer   = null;
 }
Example #2
0
 public NotificationSubscription(INotificationObservable observable, INotificationObserver observer, string channel)
 {
     this.observer   = observer;
     this.observable = observable;
     this.channel    = channel;
 }