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); }
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)); }