Exemplo n.º 1
0
 static void Main(string[] args)
 {
     if (args.Length != 4)
     {
         Console.WriteLine("Usage: BookThemAll <domain> <admin> <password> <group>");
     }
     else
     {
         // Workaround Certificate validation errors
         System.Net.ServicePointManager.ServerCertificateValidationCallback +=
             delegate(object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate,
                      System.Security.Cryptography.X509Certificates.X509Chain chain,
                      System.Net.Security.SslPolicyErrors sslPolicyErrors)
         {
             return(true);
         };
         string            domain      = args[0];
         string            admin       = args[1];
         string            password    = args[2];
         string            group       = args[3];
         BookThemAllSample bookthemall = new BookThemAllSample(domain, admin, password);
         Console.WriteLine("Event created at: {0}", bookthemall.Run(group));
     }
 }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     if (args.Length != 4)
     {
         Console.WriteLine("Usage: BookThemAll <domain> <admin> <password> <group>");
     }
     else
     {
         // Workaround Certificate validation errors
         System.Net.ServicePointManager.ServerCertificateValidationCallback +=
           delegate(object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate,
                    System.Security.Cryptography.X509Certificates.X509Chain chain,
                    System.Net.Security.SslPolicyErrors sslPolicyErrors)
           {
             return true;
           };
         string domain = args[0];
         string admin = args[1];
         string password = args[2];
         string group = args[3];
         BookThemAllSample bookthemall = new BookThemAllSample(domain, admin, password);
         Console.WriteLine("Event created at: {0}", bookthemall.Run(group));
     }
 }