/// <summary> /// Invoked at the start of saving an anchor to the cloud. /// </summary> private void StartSaving() { _appContext.Send(contextState => { ActiveCreationsCount++; ActiveCreationsCountChanged?.Invoke(this, new AnchoringServiceCreatingArgs(ActiveCreationsCount)); }, null); }
/// <summary> /// Invoked at the end of saving an anchor to the cloud. /// </summary> private void CompletedSaving() { _appContext.Send(contextState => { if (ActiveCreationsCount > 0) { ActiveCreationsCount--; ActiveCreationsCountChanged?.Invoke(this, new AnchoringServiceCreatingArgs(ActiveCreationsCount)); } }, null); }