Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/23/10 17:49:43 (14 years ago)
Author:
cneumuel
Message:

corrected assembly reference paths, added some missing files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/ServiceLocator.cs

    r4267 r4296  
    1414    internal static string Address { get; set; }
    1515    internal static string Port { get; set; }
     16    internal static string Username { get; set; }
     17    // [chn] TODO: Don't store plaintext password in memory!
     18    internal static string Password { get; set; }
    1619
    1720    internal static ISlaveManager GetSlaveManager() {
     
    2427
    2528    internal static IServerConsoleFacade GetServerConsoleFacade() {
    26       if (serverConsoleFacade == null &&
    27         Address != String.Empty &&
    28         Port != String.Empty) {
     29      if (serverConsoleFacade == null && Address != String.Empty && Port != String.Empty) {
     30        //ChannelFactory<IServerConsoleFacade> factory =
     31        //  new ChannelFactory<IServerConsoleFacade>(
     32        //    WcfSettings.GetBinding(),
     33        //    new EndpointAddress("net.tcp://" + Address + ":" + Port + "/HiveServerConsole/ServerConsoleFacade"));
    2934
    3035        ChannelFactory<IServerConsoleFacade> factory =
    3136          new ChannelFactory<IServerConsoleFacade>(
    3237            WcfSettings.GetBinding(),
    33             new EndpointAddress("net.tcp://" + Address + ":" + Port + "/HiveServerConsole/ServerConsoleFacade"));
    34                          
     38            new EndpointAddress("http://" + Address + ":" + Port + "/HiveServerConsole"));
     39
     40        factory.Credentials.UserName.UserName = Username;
     41        factory.Credentials.UserName.Password = Password;
    3542        serverConsoleFacade = factory.CreateChannel();
    3643        ((ICommunicationObject)serverConsoleFacade).Faulted += ServiceLocator_Faulted;
    3744      }
    38      
    3945      return serverConsoleFacade;
    4046    }
     
    4955      serverConsoleFacade = null;
    5056    }
     57
    5158  }
    5259}
Note: See TracChangeset for help on using the changeset viewer.