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