Reset and Dispose observable subscriber, Reactive Extensions
问题 Suppose I have this : public class UploadDicomSet { public UploadDicomSet() { var cachCleanTimer = Observable.Interval(TimeSpan.FromMinutes(2)); cachCleanTimer.Subscribe(CheckUploadSetList); //Start subscriber } void CheckUploadSetList(long interval) { //Stop and dispose subscriber } public void AddDicomFile(SharedLib.DicomFile dicomFile) { //Renew subscriber, call CheckUploadSetList 2 minutes later } } 1- in CheckUploadSetList I want to dispose or finish observable 2- in AddDicomFile I want