Changeset 13739 for branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Imports/HiveServiceLocatorWeb.cs
- Timestamp:
- 03/29/16 17:02:16 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Imports/HiveServiceLocatorWeb.cs
r13733 r13739 2 2 using HeuristicLab.Clients.Common.Properties; 3 3 using HeuristicLab.Clients.Hive.WebJobManager.ViewModels; 4 using Microsoft.AspNet.Http; 4 5 using Microsoft.AspNet.Mvc; 5 6 using System; … … 17 18 public class HiveServiceLocatorWeb : IHiveServiceLocator 18 19 { 19 private static IHiveServiceLocator instance = null;20 20 private HiveServiceClient clientinst; 21 public static IHiveServiceLocator Instance 22 { 23 get 24 { 25 if (instance == null) 26 { 27 instance = new HiveServiceLocatorWeb(); 28 } 29 return instance; 30 } 31 } 21 public Guid UserId {get; set; } 32 22 private string username; 33 23 public string Username … … 47 37 public string WorkingEndpoint { get; private set; } 48 38 49 public static void clear()50 {51 instance = null;52 }53 39 54 40 #region #unknownCalls … … 132 118 return false; 133 119 } 134 public static void SetLoginErrorMessage()135 {136 LoginViewModelService.Instance.GetLoginViewModel().errorMessage = "Login timed out";137 }138 120 139 121 public string GetEndpointInformation() … … 195 177 } 196 178 197 public void destroy ()179 public void destroyClient() 198 180 { 199 181 clientinst = null; 200 instance = null;201 182 } 202 183 }
Note: See TracChangeset
for help on using the changeset viewer.