- Timestamp:
- 03/18/19 17:24:30 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2521_ProblemRefactoring/HeuristicLab.Core
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Core/3.3/Executable.cs
r12012 r16692 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System; 23 23 using System.Drawing; 24 using System.Threading; 25 using System.Threading.Tasks; 24 26 using HeuristicLab.Common; 25 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 83 85 } 84 86 public virtual void Start() { 87 Start(CancellationToken.None); 88 } 89 public virtual void Start(CancellationToken cancellationToken) { 85 90 if ((ExecutionState != ExecutionState.Prepared) && (ExecutionState != ExecutionState.Paused)) 86 91 throw new InvalidOperationException(string.Format("Start not allowed in execution state \"{0}\".", ExecutionState)); 92 } 93 public virtual async Task StartAsync() { await StartAsync(CancellationToken.None); } 94 public virtual async Task StartAsync(CancellationToken cancellationToken) { 95 await AsyncHelper.DoAsync(Start, cancellationToken); 87 96 } 88 97 public virtual void Pause() {
Note: See TracChangeset
for help on using the changeset viewer.