/// <summary> /// Thread run method /// </summary> /// <param name="parameters"></param> /// <returns></returns> protected override bool Run(object parameters) { UserSession session = (UserSession)parameters; UserSessionManager manager = (UserSessionManager)Parent; if (session == null || manager == null) { return(false); } try { manager.InitialiseSession(session); } catch (Exception err) { EventLog.Add(err); } return(false); }
//private List<UserSession> _sessions; /// <summary> /// Constructor /// </summary> /// <param name="manager"></param> /// <param name="session"></param> public InitialiseSessionThread(UserSessionManager manager, UserSession session) : base(session, new TimeSpan(0, 0, 0, 0, 300), manager) { }