Changeset 6546
- Timestamp:
- 07/08/11 00:36:56 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs
r6464 r6546 25 25 using System.Threading; 26 26 using System.Threading.Tasks; 27 using HeuristicLab.Clients.Hive.SlaveCore.Properties; 27 28 using HeuristicLab.Clients.Hive.SlaveCore.ServiceContracts; 28 29 using HeuristicLab.Common; … … 53 54 54 55 public Core() { 55 var log = new ThreadSafeLog(new Log( ));56 var log = new ThreadSafeLog(new Log(Settings.Default.MaxLogCount)); 56 57 this.pluginManager = new PluginManager(WcfService.Instance, log); 57 58 this.jobManager = new JobManager(pluginManager, log); … … 408 409 private void log_MessageAdded(object sender, EventArgs<string> e) { 409 410 clientCom.LogMessage(e.Value.Split('\t')[1]); 410 ((ILog)sender).Clear(); // don't let the log take up memory411 411 } 412 412 #endregion -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Properties/Settings.Designer.cs
r6464 r6546 2 2 // <auto-generated> 3 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.2 254 // Runtime Version:4.0.30319.235 5 5 // 6 6 // Changes to this file may cause incorrect behavior and will be lost if … … 275 275 } 276 276 } 277 278 [global::System.Configuration.UserScopedSettingAttribute()] 279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 280 [global::System.Configuration.DefaultSettingValueAttribute("1")] 281 public int MaxLogCount { 282 get { 283 return ((int)(this["MaxLogCount"])); 284 } 285 set { 286 this["MaxLogCount"] = value; 287 } 288 } 277 289 } 278 290 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Properties/Settings.settings
r6464 r6546 66 66 <Value Profile="(Default)">hiveslave</Value> 67 67 </Setting> 68 <Setting Name="MaxLogCount" Type="System.Int32" Scope="User"> 69 <Value Profile="(Default)">1</Value> 70 </Setting> 68 71 </Settings> 69 72 </SettingsFile> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/app_ascheibe.config
r6464 r6546 75 75 <value>hiveslave</value> 76 76 </setting> 77 <setting name="MaxLogCount" serializeAs="String"> 78 <value>1</value> 79 </setting> 77 80 </HeuristicLab.Clients.Hive.SlaveCore.Properties.Settings> 78 81 </userSettings> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/app_f005pc.config
r6464 r6546 75 75 <value>hiveslave</value> 76 76 </setting> 77 <setting name="MaxLogCount" serializeAs="String"> 78 <value>1</value> 79 </setting> 77 80 </HeuristicLab.Clients.Hive.SlaveCore.Properties.Settings> 78 81 </userSettings> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/app_services.config
r6464 r6546 75 75 <value>hiveslave</value> 76 76 </setting> 77 <setting name="MaxLogCount" serializeAs="String"> 78 <value>1</value> 79 </setting> 77 80 </HeuristicLab.Clients.Hive.SlaveCore.Properties.Settings> 78 81 </userSettings>
Note: See TracChangeset
for help on using the changeset viewer.