internal static PortalContext Create(HttpContext context, PortalContextInitInfo initInfo) { PortalContext pc = new PortalContext(); pc.Initialize(context, initInfo); context.Items.Add(CONTEXT_ITEM_KEY, pc); context.Items.Add(ApplicationStorage.DEVICEPARAMNAME, pc.DeviceName); return pc; }