예제 #1
0
        static void Main(string[] args)
        {
            using (var host = new ServiceHost(typeof(Client)))
            {
                var bin = new NetMsmqBinding(NetMsmqSecurityMode.None);
                host.AddServiceEndpoint(typeof(IClient), bin, "net.msmq://localhost/private/responsequeue");
                host.Open();

                var proxy = new Serveice();
                proxy.Request(700);
                Console.ReadLine();
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            using (var host = new ServiceHost(typeof(Client)))
            {
                var bin = new NetMsmqBinding(NetMsmqSecurityMode.None);
                host.AddServiceEndpoint(typeof(IClient), bin, "net.msmq://localhost/private/responsequeue");
                host.Open();

                var proxy = new Serveice();
                proxy.Request(700);
                Console.ReadLine();
            }
        }