private static void addRecord()
        {
            //net.tcp://localhost:4321/myTcpServices/mexTcp/
            var tcpProxy = new WcfClient.myTcpServices.CustomerAddingServiceClient();

            tcpProxy.AddNewCustomer(new WcfClient.myTcpServices.Customer
            {
                CustomerID = 201, CustomerAddress = "Bangalore", CustomerName = "Phaniraj", CustomerPhone = 2342423455
            });
        }
예제 #2
0
        private static void AddRecords()
        {
            var tcpProxy = new WcfClient.myTcpServices.CustomerAddingServiceClient();

            tcpProxy.AddNewCustomer(new WcfClient.myTcpServices.Customer
            {
                CustomerID      = 5050,
                CustomerName    = "Raghav",
                CustomerAddress = "Bangalore",
                CustomerPhone   = 9676292294
            }
                                    );
        }