private void PushDeletedRules(string environmentId)
        {
            var deletedRuleIDs = m_DataManager.GetDeletedRulesIDs();

            if (deletedRuleIDs.Count > 0)
            {
                m_IsLoading = true;
                if (!m_WebRequestReturnedEventSubscribed)
                {
                    RemoteConfigWebApiClient.ruleRequestSuccess += OnRuleRequestSuccess;
                    m_WebRequestReturnedEventSubscribed          = true;
                }
                foreach (var deletedRuleID in deletedRuleIDs)
                {
                    try
                    {
                        RemoteConfigWebApiClient.DeleteRule(Application.cloudProjectId, environmentId, deletedRuleID);
                    }
                    catch
                    {
                        DoCleanUp();
                    }
                }
            }
        }
Exemple #2
0
        public void PushDeletedRules(string environmentId)
        {
            var deletedRuleIDs = m_DataManager.GetDeletedRulesIDs();

            if (deletedRuleIDs.Count > 0)
            {
                foreach (var deletedRuleID in deletedRuleIDs)
                {
                    try
                    {
                        RemoteConfigWebApiClient.DeleteRule(Application.cloudProjectId, environmentId, deletedRuleID);
                    }
                    catch
                    {
                        Debug.LogWarning("Error pushing deleted rules for environment: " + environmentId);
                    }
                }
            }
        }