Changeset 4423 for branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/ServiceLocator.cs
- Timestamp:
- 09/17/10 10:26:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/ServiceLocator.cs
r4368 r4423 39 39 } 40 40 41 private string hostAddress; 41 42 internal string HostAddress { 42 get; 43 set; 43 get { 44 return hostAddress; 45 } 46 set { 47 if (hostAddress != value) { 48 hostAddress = value; 49 if (slaveFacadePool != null) 50 slaveFacadePool.HostAddress = value; 51 if (streamedSlaveFacadePool != null) 52 streamedSlaveFacadePool.HostAddress = value; 53 } 54 } 55 } 56 57 public ServiceLocator() { 58 Settings.Default.SettingChanging += new System.Configuration.SettingChangingEventHandler(Default_SettingChanging); 59 } 60 61 void Default_SettingChanging(object sender, System.Configuration.SettingChangingEventArgs e) { 62 if (slaveFacadePool != null) { 63 slaveFacadePool.Username = Settings.Default.HiveUsername; 64 slaveFacadePool.Password = Settings.Default.HivePassword; 65 } 66 if (streamedSlaveFacadePool != null) { 67 streamedSlaveFacadePool.Username = Settings.Default.HiveUsername; 68 streamedSlaveFacadePool.Password = Settings.Default.HivePassword; 69 } 44 70 } 45 71
Note: See TracChangeset
for help on using the changeset viewer.