Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/11 13:31:37 (14 years ago)
Author:
cneumuel
Message:

#1260

  • some changes due to the removal of Disposable (r5706)
  • copy PluginInfrastructure files into PluginCache folder in slaves (needed due to r5703)
Location:
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3/HiveExperiment.cs

    r5179 r5707  
    3232using HeuristicLab.Hive.ExperimentManager.Jobs;
    3333using HeuristicLab.Hive.Tracing;
    34 using HeuristicLab.Clients.Common;
    3534
    3635namespace HeuristicLab.Hive.ExperimentManager {
     
    227226        this.progress = new Progress("Connecting to server...");
    228227        IsProgressing = true;
    229         using (Disposable<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
     228        using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
    230229          IEnumerable<string> groups = ToResourceIdList(this.ResourceIds);
    231230          this.HiveJob.SetIndexInParentOptimizerList(null);
     
    309308
    310309    public void Stop() {
    311       using (Disposable<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
     310      using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
    312311        foreach (HiveJob hj in HiveJob.GetAllHiveJobs()) {
    313312          service.Obj.AbortJob(hj.JobDto.Id);
     
    537536
    538537        progress.Status = "Connecting to Server...";
    539         using (Disposable<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {
     538        using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {
    540539          progress.Status = "Downloading list of jobs...";
    541540          allResults = service.Obj.GetChildJobResults(rootJobId.Value, true, true).Obj;
     
    591590
    592591    private OptimizerJob LoadOptimizerJob(Guid jobId) {
    593       using (Disposable<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
     592      using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
    594593        ResponseObject<SerializedJob> serializedJob = service.Obj.GetLastSerializedResult(jobId);
    595594        try {
  • branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3/HiveExperimentManager.cs

    r5399 r5707  
    102102          this.HiveExperiments = new HiveExperimentCollection();
    103103        }
    104         using (Disposable<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {
     104        using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {
    105105          currentlyUpdating = true;
    106106          ResponseObject<HiveExperimentDtoList> response = service.Obj.GetHiveExperiments();
     
    151151    void hiveExperiments_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<HiveExperiment> e) {
    152152      if (!currentlyUpdating) {
    153         using (Disposable<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {
     153        using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {
    154154          foreach (HiveExperiment item in e.Items) {
    155155            if (item.HiveExperimentId != Guid.Empty) {
  • branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3/HiveJobDownloader.cs

    r5329 r5707  
    22using System.Collections.Generic;
    33using System.Linq;
    4 using System.Text;
    5 using HeuristicLab.Hive.ExperimentManager.Jobs;
    64using System.Threading;
    75using System.Threading.Tasks;
     6using HeuristicLab.Hive.Contracts;
    87using HeuristicLab.Hive.Contracts.BusinessObjects;
    98using HeuristicLab.Hive.Contracts.Interfaces;
    10 using HeuristicLab.Clients.Common;
    119
    1210namespace HeuristicLab.Hive.ExperimentManager {
     
    7977      try {
    8078        if (abort) return null;
    81         using (Disposable<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
     79        using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
    8280          result = service.Obj.GetLastSerializedResult((Guid)jobId).Obj;
    8381        }
  • branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3/JobResultPoller.cs

    r5399 r5707  
    2727using HeuristicLab.Hive.Contracts.Interfaces;
    2828using HeuristicLab.Hive.Contracts.ResponseObjects;
    29 using HeuristicLab.Clients.Common;
    3029
    3130namespace HeuristicLab.Hive.ExperimentManager {
     
    102101        repetitions--;
    103102        try {
    104           using (Disposable<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
     103          using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
    105104            response = service.Obj.GetChildJobResults(hiveJob.JobDto.Id, true, true);
    106105          }
Note: See TracChangeset for help on using the changeset viewer.