ServiceHost host = new ServiceHost(typeof(MyFRWcfService)); string myIP = "192.168.1.2"; NetTcpBinding binding = new NetTcpBinding(); binding.MaxBufferPoolSize = (int)67108864; binding.MaxBufferSize = (int)67108864; binding.MaxReceivedMessageSize = (int)67108864; binding.MaxConnections = 50; binding.ReceiveTimeout = TimeSpan.MaxValue; host.AddServiceEndpoint( typeof(IFRWcfContract), binding, "net.tcp://" + myIP + ":8080/MyFRWcfService");
string serverIP = "192.168.1.2"; NetTcpBinding binding = new NetTcpBinding(); DuplexChannelFactory<ifrwcfcontract> scf; scf = new DuplexChannelFactory<ifrwcfcontract>( this,binding,new EndpointAddress( "net.tcp://" + serverIP + ":8080/MyFRWcfService")); IFRWcfContract activator = scf.CreateChannel(); activator.Hello();</ifrwcfcontract></ifrwcfcontract>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)