static private ApplyLocalMachineConventions ( string machineName ) : string | ||
machineName | string | |
return | string |
static string ApplyLocalMachineConventions(string machineName)
{
if (
machineName == "." ||
machineName.ToLower() == "localhost" ||
machineName == IPAddress.Loopback.ToString()
)
{
return RuntimeEnvironment.MachineName;
}
return machineName;
}