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; } }
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); } }
public static void SetParentActivationSyncState(IEnumerable <SubscriptionService> children, ActivationSyncState syncState) { if (children != null) { foreach (var child in children) { child.ActivationSyncState = syncState; } } }
public static void SetParentActivationSyncState(IEnumerable<SubscriptionService> children, ActivationSyncState syncState) { if (children != null) { foreach (var child in children) { child.ActivationSyncState = syncState; } } }