Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/29/16 17:02:16 (9 years ago)
Author:
jlodewyc
Message:

#2582 Overhaul Login service, done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Imports/HiveServiceLocatorWeb.cs

    r13733 r13739  
    22using HeuristicLab.Clients.Common.Properties;
    33using HeuristicLab.Clients.Hive.WebJobManager.ViewModels;
     4using Microsoft.AspNet.Http;
    45using Microsoft.AspNet.Mvc;
    56using System;
     
    1718    public class HiveServiceLocatorWeb : IHiveServiceLocator
    1819    {
    19         private static IHiveServiceLocator instance = null;
    2020        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; }
    3222        private string username;
    3323        public string Username
     
    4737        public string WorkingEndpoint { get; private set; }
    4838
    49         public static void clear()
    50         {
    51             instance = null;
    52         }
    5339
    5440        #region #unknownCalls
     
    132118            return false;
    133119        }
    134         public static void SetLoginErrorMessage()
    135         {
    136              LoginViewModelService.Instance.GetLoginViewModel().errorMessage = "Login timed out";
    137         }
    138120
    139121        public string GetEndpointInformation()
     
    195177        }
    196178
    197         public void destroy()
     179        public void destroyClient()
    198180        {
    199181            clientinst = null;
    200             instance = null;
    201182        }
    202183    }
Note: See TracChangeset for help on using the changeset viewer.