private void OnGetEnvironments(GetEnvironmentsResponse resp, Dictionary <string, object> customData)
 {
     Log.Debug("TestDiscovery.OnGetEnvironments()", "Discovery - GetEnvironments Response: {0}", customData["json"].ToString());
     _environmentId = resp.environments[0].environment_id;
     Test(resp != null);
     _getEnvironmentsTested = true;
 }
 private void OnGetEnvironments(GetEnvironmentsResponse resp, string data)
 {
     if (resp != null)
     {
         foreach (Environment environment in resp.environments)
         {
             Log.Debug("ExampleDiscoveryV1", "environment_id: {0}", environment.environment_id);
         }
     }
     else
     {
         Log.Debug("ExampleDiscoveryV1", "resp is null");
     }
 }
Exemple #3
0
 private void OnGetEnvironments(GetEnvironmentsResponse resp, Dictionary <string, object> customData)
 {
     Log.Debug("TestDiscovery.OnGetEnvironments()", "Discovery - GetEnvironments Response: {0}", customData["json"].ToString());
     foreach (var environment in resp.environments)
     {
         if (environment.read_only == false)
         {
             Log.Debug("TestDiscovery.OnGetEnvironments()", "setting environment to {0}", environment.environment_id);
             _environmentId = environment.environment_id;
         }
     }
     Test(resp != null);
     _getEnvironmentsTested = true;
 }
Exemple #4
0
 //  OnGetEnvironments callback
 private void OnGetEnvironments(GetEnvironmentsResponse resp, Dictionary <string, object> customData)
 {
     Log.Debug("ExampleCallback.OnGetEnvironments()", "Response received: {0}", customData["json"].ToString());
 }
Exemple #5
0
 private void OnGetEnvironments(GetEnvironmentsResponse resp, Dictionary <string, object> customData)
 {
     Log.Debug("ExampleDiscovery.OnGetEnvironments()", "Discovery - GetEnvironments Response: {0}", customData["json"].ToString());
     _getEnvironmentsTested = true;
 }
Exemple #6
0
 private void OnGetEnvironments(GetEnvironmentsResponse resp, string data)
 {
     Log.Debug("ExampleDiscoveryV1", "Discovery - GetEnvironments Response: {0}", data);
     Test(resp != null);
     _getEnvironmentsTested = true;
 }
Exemple #7
0
        private static EnvironmentInfo[] ParseGetEnvironmentsResponse(TextReader textReader)
        {
            GetEnvironmentsResponse getEnvironmentsResponse = JsonUtils.ParseJson <GetEnvironmentsResponse>(textReader);

            return((getEnvironmentsResponse?.environments) ?? new EnvironmentInfo[0]);
        }