Changeset 15287 for trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation
- Timestamp:
- 07/26/17 15:48:32 (7 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/Async (added) merged: 13329,13349,13354-13355,13401,15065,15190,15204,15212,15215-15216,15232,15280-15281,15284,15286
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBAlgorithm.cs
r14185 r15287 20 20 #endregion 21 21 22 using System.Threading; 23 using System.Threading.Tasks; 22 24 using HeuristicLab.Clients.Access; 23 25 using HeuristicLab.Collections; … … 67 69 try { 68 70 algorithm.Problem = problem; 69 } 70 catch (ArgumentException) { 71 } catch (ArgumentException) { 71 72 algorithm.Problem = null; 72 73 } … … 250 251 } 251 252 public void Start() { 253 Start(CancellationToken.None); 254 } 255 public void Start(CancellationToken cancellationToken) { 252 256 CheckUserPermissions(); 253 257 if (!ClientInformation.Instance.ClientExists && storeRunsAutomatically) { 254 258 throw new MissingClientRegistrationException(); 255 259 } 256 Algorithm.Start(); 260 Algorithm.Start(cancellationToken); 261 } 262 public async Task StartAsync() { await StartAsync(CancellationToken.None); } 263 public async Task StartAsync(CancellationToken cancellationToken) { 264 await AsyncHelper.DoAsync(Start, cancellationToken); 257 265 } 258 266 public void Pause() {
Note: See TracChangeset
for help on using the changeset viewer.