Example #1
0
 public static QuotaSyncState ConvertToQuotaSyncState(ActivationSyncState activationSyncState)
 {
     switch (activationSyncState)
     {
         case ActivationSyncState.InSync:
             return QuotaSyncState.InSync;
         case ActivationSyncState.Syncing:
             return QuotaSyncState.Syncing;
         case ActivationSyncState.OutOfSync:
             return QuotaSyncState.OutOfSync;
         default:
             Debug.Fail("Unexpected activationSyncState: " + activationSyncState.ToString());
             return QuotaSyncState.OutOfSync;
     }
 }
Example #2
0
        public static QuotaSyncState ConvertToQuotaSyncState(ActivationSyncState activationSyncState)
        {
            switch (activationSyncState)
            {
            case ActivationSyncState.InSync:
                return(QuotaSyncState.InSync);

            case ActivationSyncState.Syncing:
                return(QuotaSyncState.Syncing);

            case ActivationSyncState.OutOfSync:
                return(QuotaSyncState.OutOfSync);

            default:
                Debug.Fail("Unexpected activationSyncState: " + activationSyncState.ToString());
                return(QuotaSyncState.OutOfSync);
            }
        }
Example #3
0
 public static void SetParentActivationSyncState(IEnumerable <SubscriptionService> children, ActivationSyncState syncState)
 {
     if (children != null)
     {
         foreach (var child in children)
         {
             child.ActivationSyncState = syncState;
         }
     }
 }
Example #4
0
 public static void SetParentActivationSyncState(IEnumerable<SubscriptionService> children, ActivationSyncState syncState)
 {
     if (children != null)
     {
         foreach (var child in children)
         {
             child.ActivationSyncState = syncState;
         }
     }
 }