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"); } }
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; }
// OnGetEnvironments callback private void OnGetEnvironments(GetEnvironmentsResponse resp, Dictionary <string, object> customData) { Log.Debug("ExampleCallback.OnGetEnvironments()", "Response received: {0}", customData["json"].ToString()); }
private void OnGetEnvironments(GetEnvironmentsResponse resp, Dictionary <string, object> customData) { Log.Debug("ExampleDiscovery.OnGetEnvironments()", "Discovery - GetEnvironments Response: {0}", customData["json"].ToString()); _getEnvironmentsTested = true; }
private void OnGetEnvironments(GetEnvironmentsResponse resp, string data) { Log.Debug("ExampleDiscoveryV1", "Discovery - GetEnvironments Response: {0}", data); Test(resp != null); _getEnvironmentsTested = true; }
private static EnvironmentInfo[] ParseGetEnvironmentsResponse(TextReader textReader) { GetEnvironmentsResponse getEnvironmentsResponse = JsonUtils.ParseJson <GetEnvironmentsResponse>(textReader); return((getEnvironmentsResponse?.environments) ?? new EnvironmentInfo[0]); }