- Timestamp:
- 01/19/16 12:45:18 (9 years ago)
- Location:
- branches/thasling/DistributedGA/DistributedGA.Core/Implementation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfMessageSender.cs
r13553 r13557 19 19 private IMessageContract CreateServerClient(string ip, int port) { 20 20 var serviceUrl = "DistributedGA.svc"; 21 var baseUri = new Uri(string.Concat(" http://", ip, ":", port, "/DistributedGA"));21 var baseUri = new Uri(string.Concat("net.tcp://", ip, ":", port, "/DistributedGA")); 22 22 var serviceUri = new Uri(baseUri, serviceUrl); 23 23 24 var binding = new BasicHttpBinding();24 var binding = new NetTcpBinding(); 25 25 var endpoint = new EndpointAddress(serviceUri); 26 26 var myChannelFactory = new ChannelFactory<IMessageContract>(binding, endpoint); -
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfMessageService.cs
r13553 r13557 24 24 var serviceUrl = "DistributedGA.svc"; 25 25 new Thread(() => { 26 var baseUri = new Uri(string.Concat(" http://", ip, ":", port, "/DistributedGA"));26 var baseUri = new Uri(string.Concat("net.tcp://", ip, ":", port, "/DistributedGA")); 27 27 var serviceUri = new Uri(baseUri, serviceUrl); 28 BasicHttpBinding binding = new BasicHttpBinding();28 NetTcpBinding binding = new NetTcpBinding(); 29 29 //using (var host = new ServiceHost(typeof(MessageContractImpl), serviceUri)) 30 30 -
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfPeerListManager.cs
r13556 r13557 33 33 34 34 private IContactService CreateClient() { 35 var binding = new BasicHttpBinding();35 var binding = new NetTcpBinding(); 36 36 var endpoint = new EndpointAddress(serverString); 37 37 var myChannelFactory = new ChannelFactory<IContactService>(binding, endpoint);
Note: See TracChangeset
for help on using the changeset viewer.