コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }