- Timestamp:
- 07/06/12 13:31:40 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Clients.Hive.Slave.AzureClient/3.3/WorkerRole.cs
r8242 r8251 32 32 private Thread coreThread; 33 33 34 private const string HiveServerAddressSetting = "HiveServerAddress"; 35 private const string HiveServerCertificateSetting = "HiveServerCertifcateEncodedValue"; 36 34 37 public override void Run() { 35 38 core = new Core(false); 39 40 string hiveServerAddress = RoleEnvironment.GetConfigurationSettingValue(HiveServerAddressSetting); 41 string hiveServerCertificate = RoleEnvironment.GetConfigurationSettingValue(HiveServerCertificateSetting); 42 43 // values are empty, settings from app.config are used 44 if (!string.IsNullOrEmpty(hiveServerAddress) && !string.IsNullOrEmpty(hiveServerCertificate)) { 45 core.SetNewHiveServer(hiveServerAddress, hiveServerCertificate); 46 } 47 36 48 coreThread = new Thread(core.Start); 37 49 coreThread.Start(); … … 59 71 } 60 72 73 RoleEnvironment.Changed += RoleEnvironmentChanged; 74 61 75 return base.OnStart(); 62 76 } … … 66 80 base.OnStop(); 67 81 } 82 83 private void RoleEnvironmentChanged(object sender, RoleEnvironmentChangedEventArgs e) { 84 } 68 85 } 69 86 }
Note: See TracChangeset
for help on using the changeset viewer.