static void Main(string[] args) { PolicyServer ps = new PolicyServer(); ps.Start(); while (true) { } }
static void Main(string[] args) { string PolicyFile = (args.Length == 0) ? "PolicyFile.xml" : args[0]; if (args.Length == 0) { Console.WriteLine("No policy file specified; using PolicyFile.xml"); } PolicyServer ps = new PolicyServer(PolicyFile); System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite); }
public MainWindow() { InitializeComponent(); logListBox.Margin = new Thickness(10); MainGrid.Children.Add(logListBox); // start policy server var ps = new PolicyServer("clientaccesspolicy.xml", _logListBox); // start server StartServer(); }