Exemplo 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());
            }
        }
Exemplo n.º 2
0
 public static void Enact(string subjectName)
 {
     currentPolicy = new PermissiveCertificatePolicy(subjectName);
 }