- Timestamp:
- 07/03/12 16:46:35 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:mergeinfo changed
/trunk/sources merged: 8084,8088-8090,8092-8100,8102-8113,8115,8117-8132,8134-8146,8148-8156,8158-8160,8163-8170,8173-8176,8178-8190,8192-8205
- Property svn:mergeinfo changed
-
branches/GP-MoveOperators/HeuristicLab.Clients.Hive/3.3/HiveClient.cs
r7582 r8206 258 258 private void UploadJob(RefreshableJob refreshableJob, CancellationToken cancellationToken) { 259 259 try { 260 refreshableJob.IsProgressing = true; 260 261 refreshableJob.Progress = new Progress("Connecting to server..."); 261 refreshableJob.IsProgressing = true;262 263 262 IEnumerable<string> resourceNames = ToResourceNameList(refreshableJob.Job.ResourceNames); 264 263 var resourceIds = new List<Guid>(); … … 317 316 finally { 318 317 refreshableJob.IsProgressing = false; 318 refreshableJob.Progress.Finish(); 319 319 } 320 320 } … … 351 351 /// </summary> 352 352 /// <param name="parentHiveTask">shall be null if its the root task</param> 353 private void UploadTaskWithChildren( IProgress progress, HiveTask hiveTask, HiveTask parentHiveTask, IEnumerable<Guid> groups, int[] taskCount, int totalJobCount, Guid configPluginId, Guid jobId, ILog log, bool isPrivileged, CancellationToken cancellationToken) {353 private void UploadTaskWithChildren(Progress progress, HiveTask hiveTask, HiveTask parentHiveTask, IEnumerable<Guid> groups, int[] taskCount, int totalJobCount, Guid configPluginId, Guid jobId, ILog log, bool isPrivileged, CancellationToken cancellationToken) { 354 354 taskUploadSemaphore.WaitOne(); 355 355 bool semaphoreReleased = false; … … 427 427 public static void LoadJob(RefreshableJob refreshableJob) { 428 428 var hiveExperiment = refreshableJob.Job; 429 refreshableJob.IsProgressing = true; 429 430 refreshableJob.Progress = new Progress(); 430 431 431 432 try { 432 refreshableJob.IsProgressing = true;433 433 int totalJobCount = 0; 434 434 IEnumerable<LightweightTask> allTasks; … … 472 472 finally { 473 473 refreshableJob.IsProgressing = false; 474 refreshableJob.Progress.Finish(); 474 475 } 475 476 } … … 493 494 private static IEnumerable<string> ToResourceNameList(string resourceNames) { 494 495 if (!string.IsNullOrEmpty(resourceNames)) { 495 return resourceNames.Split( ';');496 return resourceNames.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries); 496 497 } else { 497 498 return new List<string>();
Note: See TracChangeset
for help on using the changeset viewer.