Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/12 16:46:35 (12 years ago)
Author:
gkronber
Message:

#1847: merged r8084:8205 from trunk into GP move operators branch

Location:
branches/GP-MoveOperators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GP-MoveOperators

  • branches/GP-MoveOperators/HeuristicLab.Clients.Hive/3.3/HiveClient.cs

    r7582 r8206  
    258258    private void UploadJob(RefreshableJob refreshableJob, CancellationToken cancellationToken) {
    259259      try {
     260        refreshableJob.IsProgressing = true;
    260261        refreshableJob.Progress = new Progress("Connecting to server...");
    261         refreshableJob.IsProgressing = true;
    262 
    263262        IEnumerable<string> resourceNames = ToResourceNameList(refreshableJob.Job.ResourceNames);
    264263        var resourceIds = new List<Guid>();
     
    317316      finally {
    318317        refreshableJob.IsProgressing = false;
     318        refreshableJob.Progress.Finish();
    319319      }
    320320    }
     
    351351    /// </summary>
    352352    /// <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) {
    354354      taskUploadSemaphore.WaitOne();
    355355      bool semaphoreReleased = false;
     
    427427    public static void LoadJob(RefreshableJob refreshableJob) {
    428428      var hiveExperiment = refreshableJob.Job;
     429      refreshableJob.IsProgressing = true;
    429430      refreshableJob.Progress = new Progress();
    430431
    431432      try {
    432         refreshableJob.IsProgressing = true;
    433433        int totalJobCount = 0;
    434434        IEnumerable<LightweightTask> allTasks;
     
    472472      finally {
    473473        refreshableJob.IsProgressing = false;
     474        refreshableJob.Progress.Finish();
    474475      }
    475476    }
     
    493494    private static IEnumerable<string> ToResourceNameList(string resourceNames) {
    494495      if (!string.IsNullOrEmpty(resourceNames)) {
    495         return resourceNames.Split(';');
     496        return resourceNames.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
    496497      } else {
    497498        return new List<string>();
Note: See TracChangeset for help on using the changeset viewer.