public ClientRegistrationResult RegisterClient2(string request)
        {
            //object[] results = new object[100];
            try
            {
                object[] results = Invoke("RegisterClient2", new object[] { request });
                //results = Invoke("RegisterClient2", new object[] { request });
                //Console.WriteLine("--------------------");
                //Console.WriteLine(results[0].ToString());
                //Console.WriteLine("--------------------");
                return((ClientRegistrationResult)(results[0]));
            }
            catch (Exception e)
            {
                ClientRegistrationResult ecsr = new ClientRegistrationResult();
                ecsr.IsSuccess         = false;
                ecsr.RegistrationToken = "";
                ecsr.Gdid = "";
                Console.WriteLine("\nError: " + e.Message);
                Console.WriteLine("\nClient Registration Failed. Possible Reasons: This client may have linked with incorrect service.");

                return(ecsr);
            }
        }
        public ClientRegistrationResult RegisterClient2(string request)
        {
            //object[] results = new object[100];
            try
            {
                object[] results = Invoke("RegisterClient2", new object[] { request });
                //results = Invoke("RegisterClient2", new object[] { request });
                //Console.WriteLine("--------------------");
                //Console.WriteLine(results[0].ToString());
                //Console.WriteLine("--------------------");
                return ((ClientRegistrationResult)(results[0]));
            }
            catch (Exception e)
            {
                ClientRegistrationResult ecsr = new ClientRegistrationResult();
                ecsr.IsSuccess = false;
                ecsr.RegistrationToken = "";
                ecsr.Gdid = "";
                Console.WriteLine("\nError: " + e.Message);
                Console.WriteLine("\nClient Registration Failed. Possible Reasons: This client may have linked with incorrect service.");

                return ecsr;
            }
        }