public WebSessionContext( iSystem system, HttpSessionStateBase session, ISessionFactory sessionFactory, string fromIPAddress) : base(system, sessionFactory) { this.WebSessionState = session; this.FromIPAddress = fromIPAddress; }
public BudgetUserSession(iSystem iSystem, SelfAuthenticatedUser user, string fromIPAddress) : base(iSystem, user, fromIPAddress) { }
private static UserSession CreateFailedSession(BizPortalSessionContext context, HttpSessionState session, iSystem systemApplication, String ipAddress, string userName, MemberUser user, string message) { DateTime now = DateTime.Now; UserSession failedSession = new UserSession { ApplicationSessionID = session.SessionID, FromIPAddress = ipAddress, LoginFailed = true, LoginMessage = message, SystemID = systemApplication.SystemID, SessionPeriod = new TimeInterval(now, now), User = user, UserName = userName, }; return(failedSession); }
//public static int ApplicationID //{ // get // { // int applicationID = 0; // int.TryParse(System.Configuration.ConfigurationManager.AppSettings["SystemID"], out applicationID); // return applicationID; // } //} public static void SetThisSystem(SystemEnum applicationID) { ThisSystem = new iSystem(applicationID); ThisSystem.Title = System.Configuration.ConfigurationManager.AppSettings["ApplicationTitle"].ToString(); }
public SessionContext(iSystem iSystem, ISessionFactory sessionFactory) : base(iSystem, sessionFactory) { BudgetConfiguration.SessionFactory = sessionFactory; }
public SessionContext(iSystem iSystem, ISessionFactory sessionFactory, string fromIPAddress) : base(iSystem, sessionFactory) { BudgetConfiguration.SessionFactory = sessionFactory; base.FromIPAddress = fromIPAddress; }