Beispiel #1
0
        private string GetPublicIP(EnvironmentSettings environmentSettings)
        {
            try
            {
                AuthMethods authMethods = new AuthMethods();
                authMethods.Initialize(environmentSettings.ServerType, environmentSettings.OrganizationName, environmentSettings.ServerUrl, environmentSettings.Username, environmentSettings.Password);

                return(authMethods.Ping());
            }
            catch (Exception)
            {
                return("Server is not responding");
            }
        }