- Timestamp:
- 03/29/16 17:02:16 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Jobs/FileOpeningService.cs
r13733 r13739 16 16 public class FileOpeningService 17 17 { 18 public Guid UserId { get; set; } 19 20 private WebLoginService weblog; 18 21 public RefreshableJob Job { get; set; } 19 22 public FileOpeningViewModel vm { get; set; } … … 22 25 get; set; } 23 26 public List<int> previousLogs { get; set; } 24 private static FileOpeningService instance; 25 public static FileOpeningService Instance 27 28 29 public FileOpeningService(Guid u) 26 30 { 27 get 28 { 29 if (instance == null) 30 { 31 instance = new FileOpeningService(); 32 } 33 return instance; 34 } 31 weblog = WebLoginService.Instance; 32 UserId = u; 35 33 } 34 35 36 36 /// <summary> 37 37 /// Clears loaded jobs and start new one … … 58 58 { 59 59 // HiveClientWeb.Instance.Refresh(); 60 HiveClientWeb.LoadJob(Job);60 weblog.getClientWeb(UserId).LoadJob(Job); 61 61 } 62 62 /// <summary> … … 68 68 if (vm != null) 69 69 { 70 71 72 73 HiveServiceLocatorWeb serv = (HiveServiceLocatorWeb)HiveServiceLocatorWeb.Instance; 74 //job.Job.Id = serv.getHiveServiceClient().AddJob(job.Job); 75 // job.Job = serv.getHiveServiceClient().GetJob(job.Job.Id); 76 77 HiveClientWeb.CurrentEnv = env; 78 HiveClientWeb.Instance.Refresh(); 79 HiveClientWeb.StartJob((ex) => { throw ex; }, Job, CancellationToken.None); 70 var clientWeb = weblog.getClientWeb(UserId); 71 clientWeb.CurrentEnv = env; 72 clientWeb.Refresh(); 73 clientWeb.StartJob((ex) => { throw ex; }, Job, CancellationToken.None); 80 74 return Job; 81 75 }
Note: See TracChangeset
for help on using the changeset viewer.