Ejemplo n.º 1
0
        static public void LoadDataContextForUserContext(HttpContextBase httpContext)
        {
            IIotContextBase cont = (IIotContextBase)httpContext.Session["iotcontext"];

            if (cont == null)
            {
                IIotContextBase icont = UserIotContextFactory.GetDataContextForUserHttpContext(httpContext);
                System.Web.HttpContext.Current.Session["iotcontext"] = icont;
            }
        }
Ejemplo n.º 2
0
        /********** Context ***********/
        static public void CreateDataContextForUserContext(HttpContextBase httpContext)
        {
            IIotContextBase icont = UserIotContextFactory.GetDataContextForUserHttpContext(httpContext);

            System.Web.HttpContext.Current.Session["iotcontext"] = icont;
        }