public WcfWindowsUserInfo(ILogProvider logProvider, IWindowsSecurity windowsSecurity) { _logger = logProvider.GetLogger(GetType().Name); _performanceLogger = logProvider.GetLogger("Performance"); _isUserRecognized = new Lazy<bool>(() => InitIsUserRecognized()); _userName = new Lazy<string>(() => InitUserName()); _workstation = new Lazy<string>(() => windowsSecurity.GetClientWorkstation()); _windowsIdentity = new Lazy<WindowsIdentity>(() => InitWindowsIdentity()); }
public WcfWindowsUserInfo(ILogProvider logProvider, IWindowsSecurity windowsSecurity) { _logger = logProvider.GetLogger(GetType().Name); _performanceLogger = logProvider.GetLogger("Performance"); _isUserRecognized = new Lazy <bool>(() => InitIsUserRecognized()); _userName = new Lazy <string>(() => InitUserName()); _workstation = new Lazy <string>(() => windowsSecurity.GetClientWorkstation()); _windowsIdentity = new Lazy <WindowsIdentity>(() => InitWindowsIdentity()); }
public AspNetUserInfo(IWindowsSecurity windowsSecurity) { _isUserRecognized = new Lazy<bool>(() => HttpContext.Current != null && HttpContext.Current.User != null && HttpContext.Current.User.Identity != null && HttpContext.Current.User.Identity.IsAuthenticated); _userName = new Lazy<string>(() => HttpContext.Current.User.Identity.Name); _workstation = new Lazy<string>(() => windowsSecurity.GetClientWorkstation()); }
public AspNetUserInfo(IWindowsSecurity windowsSecurity) { _isUserRecognized = new Lazy <bool>(() => HttpContext.Current != null && HttpContext.Current.User != null && HttpContext.Current.User.Identity != null && HttpContext.Current.User.Identity.IsAuthenticated); _userName = new Lazy <string>(() => HttpContext.Current.User.Identity.Name); _workstation = new Lazy <string>(() => windowsSecurity.GetClientWorkstation()); }
public OwinUserInfo(IWindowsSecurity windowsSecurity) { _workstation = windowsSecurity.GetClientWorkstation(); }