Exemplo n.º 1
0
 public WebSessionContext(
     iSystem system,
     HttpSessionStateBase session,
     ISessionFactory sessionFactory,
     string fromIPAddress)
     : base(system, sessionFactory)
 {
     this.WebSessionState = session;
     this.FromIPAddress   = fromIPAddress;
 }
Exemplo n.º 2
0
 public BudgetUserSession(iSystem iSystem, SelfAuthenticatedUser user, string fromIPAddress)
     : base(iSystem, user, fromIPAddress)
 {
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        //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();
        }
Exemplo n.º 5
0
 public SessionContext(iSystem iSystem, ISessionFactory sessionFactory)
     : base(iSystem, sessionFactory)
 {
     BudgetConfiguration.SessionFactory = sessionFactory;
 }
Exemplo n.º 6
0
 public SessionContext(iSystem iSystem, ISessionFactory sessionFactory, string fromIPAddress)
     : base(iSystem, sessionFactory)
 {
     BudgetConfiguration.SessionFactory = sessionFactory;
     base.FromIPAddress = fromIPAddress;
 }