Changeset 5588 for branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/WcfServicePool.cs
- Timestamp:
- 03/02/11 10:17:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/WcfServicePool.cs
r5153 r5588 22 22 using System; 23 23 using System.ServiceModel; 24 using HeuristicLab.Clients.Common; 24 25 using HeuristicLab.Common; 25 using HeuristicLab.Hive.Tracing;26 using HeuristicLab.Clients.Common;27 using HeuristicLab.Hive.Contracts.Interfaces;28 26 29 27 namespace HeuristicLab.Hive.Contracts { … … 63 61 try { 64 62 if (!string.IsNullOrEmpty(userName) && !string.IsNullOrEmpty(password)) { 65 return ClientFactory.CreateClient<T>(endpointName, hostAddress, userName, password); 63 var factory = ClientFactory.CreateChannelFactory<T>(endpointName, hostAddress, userName, password); 64 return new Disposable<T>(factory.Obj.CreateChannel()); 66 65 } else { 67 return ClientFactory.CreateClient<T>(endpointName, hostAddress); 66 var factory = ClientFactory.CreateChannelFactory<T>(endpointName, hostAddress); 67 return new Disposable<T>(factory.Obj.CreateChannel()); 68 68 } 69 69 }
Note: See TracChangeset
for help on using the changeset viewer.