private void OnFetchConfigsFinished(JObject config)
 {
     m_EnvController.RefreshDataStore(config);
     if (config.HasValues && !string.IsNullOrEmpty(config["id"].Value <string>()))
     {
         RemoteConfigWebApiClient.FetchRules(Application.cloudProjectId, config["id"].Value <string>());
     }
     else
     {
         m_EnvController.RefreshRulesDataStore(new JArray());
         crudCompleted?.Invoke();
     }
 }
 private void FetchRules()
 {
     if (!string.IsNullOrEmpty(m_DataManager.configId))
     {
         RemoteConfigWebApiClient.fetchRulesFinished += OnFetchRulesFinished;
         try
         {
             RemoteConfigWebApiClient.FetchRules(Application.cloudProjectId, m_DataManager.configId);
         }
         catch
         {
             RemoteConfigWebApiClient.fetchRulesFinished -= OnFetchRulesFinished;
             DoCleanUp();
         }
     }
 }