예제 #1
0
        private static void TestValidServerName()
        {
            try
            {
                ServerName remoteServer = new ServerName(Environment.MachineName);
                Logger.LogDebug(string.Format("Server name {0} is valid", Environment.MachineName));
            }
            catch (Exception ex)
            {
                Logger.LogError(string.Format("Server name {0} seems to be invalid", Environment.MachineName), ex);
            }

            ConsoleTest.GetNextInput("Press Enter to end test");
        }
예제 #2
0
 public UncPath(ServerName remoteServer, ShareName shareName, SubDirectory subDirectory)
 {
     _remoteServer = remoteServer;
     _shareName    = shareName;
     _subDirectory = subDirectory;
 }
예제 #3
0
 public UncPath(ServerName remoteServer, ShareName shareName)
 {
     _remoteServer = remoteServer;
     _shareName    = shareName;
 }