public AuthenticationService( IQuickspatchHttpContext httpContext, IClaimsManager claimsManager, IFormAuthenticationService formAuthenticationService, ISessionIDManager sessionIdManager, IDiagnosticService diagnosticService, IUserRepository userRepository , ISystemEventService systemEventService, IFranchiseeConfigurationRepository franchiseeConfigurationRepository) { HttpContext = httpContext; FormAuthenticationService = formAuthenticationService; ClaimsManager = claimsManager; SessionIdManager = sessionIdManager; _diagnosticService = diagnosticService; _userRepository = userRepository; _systemEventService = systemEventService; _franchiseeConfigurationRepository = franchiseeConfigurationRepository; }
public CommonController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, ITempUploadFileService tempUploadFileService, ISystemEventService systemEventService, IGoogleService googleService, IFranchiseeConfigurationService franchiseeConfigurationService, IEmailHandler emailHandler, IStaticValueService staticValueService) : base(authenticationService, diagnosticService, null) { _authenticationService = authenticationService; _diagnosticService = diagnosticService; _tempUploadFileService = tempUploadFileService; _systemEventService = systemEventService; _staticValueService = staticValueService; _tempUploadFileService.FilePath = "/Content/Upload/"; _googleService = googleService; _franchiseeConfigurationService = franchiseeConfigurationService; _emailHandler = emailHandler; }
public RequestController(IAuthenticationService authenticationService, IGridConfigService gridConfigService, IRequestService requestService, IStaticValueService staticValueService, IRenderViewToString renderViewToString, INoteRequestService noteRequestService, ISystemEventService systemEventService, ILocationService locationService, IGoogleService googleService, IUserService userService, IHoldingRequestService holdingRequestService, ISystemConfigurationService systemConfigurationService, IDiagnosticService diagnosticService) : base(authenticationService, diagnosticService, requestService) { _requestService = requestService; _staticValueService = staticValueService; _gridConfigService = gridConfigService; _renderViewToString = renderViewToString; _noteRequestService = noteRequestService; _systemEventService = systemEventService; _locationService = locationService; _googleService = googleService; _systemConfigurationService = systemConfigurationService; _holdingRequestService = holdingRequestService; _userService = userService; _diagnosticService = diagnosticService; }
public DashboardController(ISystemEventService systemEventService) { _systemEventService = systemEventService; }
/// <summary> /// Occurs when a request has began /// </summary> /// <param name="sender">Sender object</param> /// <param name="e">Event arguments</param> private void ContextBeginRequest(object sender, EventArgs e) { HttpApplication application = sender as HttpApplication; HttpContext context = application.Context; string path = context.Request.Path; string url = context.Request.Url.AbsolutePath.ToLowerInvariant(); if (path.Length == 0) { return; } if (url.Contains(SystemSettings.StatusPageName)) { return; } if (WebHelper.IsStaticResource(context.Request)) { return; } ISystemEventService systemEventFacade = IoC.Resolve <ISystemEventService>(); var systemEvents = systemEventFacade.SelectAllEvents(); if (!systemEvents.Any()) { return; } var matchingEvents = systemEvents .Where(systemEvent => url.Contains(string.Format("/{0}", systemEvent.Code.ToLowerInvariant()))); if (matchingEvents.Any()) { this.systemEventSelected = matchingEvents.First(); CookieHelper.SetCookie(this.CookieNameEventCode, this.systemEventSelected.Code, this.CookieExpirationTime); context.RewritePath("~/SignIn.aspx", false); } else if (url.ToLowerInvariant().Contains("signin.aspx")) { SystemEvent systemEventFirst = systemEvents.First(); string currentEventCode = systemEventFirst.Code; string cookieValue = CookieHelper.GetCookieString(this.CookieNameEventCode, true); if (!string.IsNullOrEmpty(cookieValue)) { currentEventCode = HttpUtility.HtmlEncode(cookieValue); } context.Response.Redirect(currentEventCode); } }
public SystemEventController(ISystemEventService systemEventService) { _systemEventService = systemEventService; }