コード例 #1
0
 private IHostSwitchConfig GetCurrentUser(string userName, string pwd)
 {
     HostManagerServer hms = new HostManagerServer(new ServerHostSwitchConfig(userName));
     if (!hms.UserDirectoryIsExists(userName))
         hms.InitUserDirectoryInfo(userName);
     return new ServerHostSwitchConfig(userName);
 }
コード例 #2
0
        private IHostSwitchConfig GetCurrentUser(string userName, string pwd)
        {
            HostManagerServer hms = new HostManagerServer(new ServerHostSwitchConfig(userName));

            if (!hms.UserDirectoryIsExists(userName))
            {
                hms.InitUserDirectoryInfo(userName);
            }
            return(new ServerHostSwitchConfig(userName));
        }