static void Main(string[] args)
        {
            PolicyServer ps = new PolicyServer();

            ps.Start();
            while (true)
            {
            }
        }
示例#2
0
 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);
 }
示例#3
0
        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();
        }
示例#4
0
文件: Program.cs 项目: GMZ/mdcm
 static void Main(string[] args)
 {
     PolicyServer ps = new PolicyServer();
     ps.Start();
     while (true) { }
 }