Beispiel #1
0
    private void HandleCheckEnvironmentState(Environment resp, Dictionary <string, object> customData)
    {
        Log.Debug("ExampleDiscovery.HandleCheckEnvironmentState()", "Environment {0} is {1}", resp.environment_id, resp.status);

        if (resp.status.ToLower() == "active")
        {
            _isEnvironmentReady = true;
        }
        else
        {
            Runnable.Run(CheckEnvironmentState(10f));
        }
    }
Beispiel #2
0
 private void OnGetEnvironment(Environment resp, Dictionary <string, object> customData)
 {
     Log.Debug("ExampleDiscovery.OnGetEnvironment()", "Discovery - GetEnvironment Response: {0}", customData["json"].ToString());
     _getEnvironmentTested = true;
 }