Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/02/11 10:17:53 (13 years ago)
Author:
cneumuel
Message:

#1260

  • fixed compatibility issue
  • updated hive binaries
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/WcfServicePool.cs

    r5153 r5588  
    2222using System;
    2323using System.ServiceModel;
     24using HeuristicLab.Clients.Common;
    2425using HeuristicLab.Common;
    25 using HeuristicLab.Hive.Tracing;
    26 using HeuristicLab.Clients.Common;
    27 using HeuristicLab.Hive.Contracts.Interfaces;
    2826
    2927namespace HeuristicLab.Hive.Contracts {
     
    6361      try {
    6462        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());
    6665        } else {
    67           return ClientFactory.CreateClient<T>(endpointName, hostAddress);
     66          var factory = ClientFactory.CreateChannelFactory<T>(endpointName, hostAddress);
     67          return new Disposable<T>(factory.Obj.CreateChannel());     
    6868        }
    6969      }
Note: See TracChangeset for help on using the changeset viewer.