예제 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("When the services are ready, press <ENTER> to start the credit check.");
            Console.ReadLine();

            Console.WriteLine("Starting credit check...");
            Client.ServiceReference1.RentalApprovalServiceClient client = new Client.ServiceReference1.RentalApprovalServiceClient();
            SendData sendData = new SendData();

            sendData.credit = 600;
            sendData.value  = 100000;
            if (client.SendData(sendData) == true)
            {
                Console.WriteLine("Credit approved!");
            }
            else
            {
                Console.WriteLine("Credit not approved...");
            }
            client.Close();
            client.ChannelFactory.Close();
            Console.WriteLine();
            Console.WriteLine("Press <ENTER> to terminate client.");
            Console.ReadLine();
        }
예제 #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("When the services are ready, press <ENTER> to start the credit check.");
            Console.ReadLine();

            Console.WriteLine("Starting credit check...");
            Client.ServiceReference1.RentalApprovalServiceClient client = new Client.ServiceReference1.RentalApprovalServiceClient();
            SendData sendData = new SendData();
            sendData.credit = 600;
            sendData.value = 100000;
            if (client.SendData(sendData) == true)
            {
                Console.WriteLine("Credit approved!");
            }
            else
            {
                Console.WriteLine("Credit not approved...");
            }
            client.Close();
            client.ChannelFactory.Close();
            Console.WriteLine();
            Console.WriteLine("Press <ENTER> to terminate client.");
            Console.ReadLine();
        }