public void RunApplication(string[] args) { var cmdLine = new SetUserCommandLine(); try { cmdLine.Parse(args); using (new AuthenticationScope(cmdLine.UserName, "setup", Dns.GetHostName(), cmdLine.Password)) { SetupHelper.ImportUsers(cmdLine.UserData); } } catch (CommandLineException e) { Console.WriteLine(e.Message); Platform.Log(LogLevel.Error, e, "Command line error."); } }
public void RunApplication(string[] args) { var cmdLine = new SetUserCommandLine(); try { cmdLine.Parse(args); using (new AuthenticationScope(cmdLine.UserName, "setup", Dns.GetHostName(), cmdLine.Password)) { SetupHelper.ImportUsers(cmdLine.UserData); } } catch (CommandLineException e) { Console.WriteLine(e.Message); Platform.Log(LogLevel.Error, e, "Command line error."); } }