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(); } }
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(); } }