- Timestamp:
- 01/19/12 15:15:15 (13 years ago)
- Location:
- branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.Slave.AzureClient
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.Slave.AzureClient/HeuristicLab.Clients.Hive.Slave.AzureClient.csproj
r7215 r7371 62 62 </ItemGroup> 63 63 <ItemGroup> 64 <Compile Include="Constants.cs" /> 64 65 <Compile Include="WorkerRole.cs" /> 65 66 <Compile Include="Properties\AssemblyInfo.cs" /> -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.Slave.AzureClient/WorkerRole.cs
r7005 r7371 18 18 while (true) { 19 19 Thread.Sleep(10000); 20 //Trace.WriteLine("Working", "Information");21 20 } 22 21 } … … 25 24 ServicePointManager.DefaultConnectionLimit = 12; 26 25 core = new Core(); 27 28 DiagnosticMonitorConfiguration dmc = DiagnosticMonitor.GetDefaultInitialConfiguration(); 29 dmc.Logs.ScheduledTransferPeriod = TimeSpan.FromMinutes(1); 30 dmc.Logs.ScheduledTransferLogLevelFilter = LogLevel.Verbose; 31 DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", dmc); 26 try { 27 if (!String.IsNullOrEmpty(RoleEnvironment.GetConfigurationSettingValue(Constants.DiagnosticsConnectionString))) { 28 DiagnosticMonitorConfiguration dmc = DiagnosticMonitor.GetDefaultInitialConfiguration(); 29 dmc.Logs.ScheduledTransferPeriod = TimeSpan.FromMinutes(1); 30 dmc.Logs.ScheduledTransferLogLevelFilter = LogLevel.Verbose; 31 DiagnosticMonitor.Start(Constants.DiagnosticsConnectionString, dmc); 32 } 33 } 34 catch (RoleEnvironmentException ex) { 35 //diagnostics connectio string not in configuration 36 //-> diagnostics disabled 37 //nothing more to do 38 } 32 39 33 40 return base.OnStart();
Note: See TracChangeset
for help on using the changeset viewer.