Esempio n. 1
0
        static void Main(string[] args)
        {
            WCFMonitorClient proxy = new WCFMonitorClient("monitor");

            PermissiveCertificatePolicy.Enact("CN=localhost");

            try
            {
                string[] services = proxy.GetServices();
                Console.WriteLine("Serivces" + Environment.NewLine + "-----------------");
                foreach (string service in services)
                {
                    Console.WriteLine(service);
                }
                Console.WriteLine("-----------------" + Environment.NewLine);
                string retval = proxy.GetProcessInfo("Seahawks");
                Console.WriteLine(retval);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Esempio n. 2
0
 public static void Enact(string subjectName)
 {
     currentPolicy = new PermissiveCertificatePolicy(subjectName);
 }