Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/25/16 12:47:31 (9 years ago)
Author:
jlodewyc
Message:

#2582 finish Job manager functionality. Start overhaul client connections (login, hiveclient and fileopening)

Location:
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Hubs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Hubs/JobUpdaterHub.cs

    r13733 r13735  
    3939                looperTasks(t);//starts recursive loop
    4040            }
    41             Clients.All.requestDone();//Final note from server when all tasks are checked.
     41            Clients.Caller.requestDone();//Final note from server when all tasks are checked.
    4242            //Client starts countdown and resends the updateAll when done
    4343            GC.Collect();
     
    4747        public void updateJob()
    4848        {
    49             Clients.All.processJobData(Job.Job.CalculatingCount, Job.Job.FinishedCount);
     49            Clients.Caller.processJobData(Job.Job.CalculatingCount, Job.Job.FinishedCount);
    5050        }
    5151        /// <summary>
     
    7878                    //limits loaded data
    7979                    var json = JsonConvert.SerializeObject(task.Task, settings);
    80                     Clients.All.processData(task.Task.Id, json, task.ItemTask.Name.ToString());
     80                    Clients.Caller.processData(task.Task.Id, json, task.ItemTask.Name.ToString());
    8181                    //data sent to user
    8282                }
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Hubs/ProgressHub.cs

    r13733 r13735  
    2323        {
    2424
    25             Clients.All.processMessage("Connection Established");
     25            Clients.Caller.processMessage("Connection Established");
    2626            Job = FileOpeningService.Instance.Job;
    2727            Job.Progress.StatusChanged += runHub;
     
    3131        /// </summary>
    3232        /// <param name="name">Job name</param>
    33         public void ChangeName(string name)
     33        public void ChangeNameResource(string name, string resource)
    3434        {
    3535            if (name != null)
    3636                FileOpeningService.Instance.Job.Job.Name = name;
     37            if(resource != null && resource != "")
     38            {
     39                FileOpeningService.Instance.Job.Job.ResourceNames += "/" + resource;
     40            }
    3741        }
    3842        /// <summary>
     
    153157            }
    154158            //send info to client
    155             Clients.All.processMessage(Job.Progress.Status, value);
     159            Clients.Caller.processMessage(Job.Progress.Status, value);
    156160
    157161        }
Note: See TracChangeset for help on using the changeset viewer.