Esempio n. 1
0
        static void Main(string[] args)
        {
            if (args.Length == 0 || args[0] == "-h")
            {
                PrintUsage();
                return;
            }

            //try
            //{
                // create a QMS API client
                apiClient = new QMSClient();

                //If you want to connect to a server different from the one used when creating the service reference,
                //do as follows:                                
                // 
                //NTLM only (default installation)
                //IQMS apiClient = new QMSClient("BasicHttpBinding_IQMS", "http://*****:*****@"\\unc\some", Name = "MyMount" });
                //    // save settings
                //    apiClient.SaveQVSSettings(qvsSettings);
                //    Console.WriteLine("Settings saved. New mount added.");
                //}
            //}
            //catch (System.Exception ex)
            //{
            //    Console.WriteLine("An exception occurred: " + ex.Message);
            //}
            // wait for user to press any key
            //Console.ReadLine();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            if (args.Length == 0 || args[0] == "-h")
            {
                PrintUsage();
                return;
            }

            //try
            //{
            // create a QMS API client
            apiClient = new QMSClient();

            //If you want to connect to a server different from the one used when creating the service reference,
            //do as follows:
            //
            //NTLM only (default installation)
            //IQMS apiClient = new QMSClient("BasicHttpBinding_IQMS", "http://*****:*****@"\\unc\some", Name = "MyMount" });
            //    // save settings
            //    apiClient.SaveQVSSettings(qvsSettings);
            //    Console.WriteLine("Settings saved. New mount added.");
            //}
            //}
            //catch (System.Exception ex)
            //{
            //    Console.WriteLine("An exception occurred: " + ex.Message);
            //}
            // wait for user to press any key
            //Console.ReadLine();
        }