Ejemplo n.º 1
0
        internal static string GetCurrentConnectedServerName()
        {
            string result = string.Empty;

            if (WinformsHelper.IsRemoteEnabled())
            {
                result = PSConnectionInfoSingleton.GetInstance().ServerName;
            }
            else
            {
                result = EnvironmentAnalyzer.GetLocalServerName();
            }
            return(result);
        }
Ejemplo n.º 2
0
        internal static bool IsConnectedWithLocalServer()
        {
            string localServerName = EnvironmentAnalyzer.GetLocalServerName();

            return(WinformsHelper.IsCurrentConnectedServer(localServerName));
        }