Changeset 13557 for branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfMessageSender.cs
- Timestamp:
- 01/19/16 12:45:18 (9 years ago)
- File:
-
- 1 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);
Note: See TracChangeset
for help on using the changeset viewer.