public FormsAuthenticationService() { this._httpContext = (new HttpContextWrapper(HttpContext.Current) as HttpContextBase); this._cacheManager = new CacheManager(); this._expirationTimeSpan = FormsAuthentication.Timeout; this._userWebClient = new TWebClient(0); }
public ReportController() { _authService = new FormsAuthenticationService(); _webClient = new TWebClient(_authService.CurrentUserData != null ? _authService.CurrentUserData.UserId : 0); }