public void StopUpdateNotification() { if (mRESTUpdater == null) { throw new InvalidOperationException("Notification not started"); } mRESTUpdater.Dispose(); mRESTUpdater = null; mRESTUpdaterCallback = null; }
public void StartUpdateNotification(Action <REST, Page, ChangeFlags> aCallback) { if (mRESTUpdater != null) { throw new InvalidOperationException("Notification already started"); } mRESTUpdater = new RESTUpdater(); mRESTUpdater.UpdateReceived += OnUpdateReceived; mRESTUpdaterCallback = aCallback; mRESTUpdater.Connect(Link); }
public void StopUpdateNotification() { if (mRESTUpdater == null) throw new InvalidOperationException("Notification not started"); mRESTUpdater.Dispose(); mRESTUpdater = null; mRESTUpdaterCallback = null; }
public void StartUpdateNotification(Action<REST, Page,ChangeFlags> aCallback) { if (mRESTUpdater != null) throw new InvalidOperationException("Notification already started"); mRESTUpdater = new RESTUpdater(); mRESTUpdater.UpdateReceived += OnUpdateReceived; mRESTUpdaterCallback = aCallback; mRESTUpdater.Connect(Link); }