Beispiel #1
0
        private PortalContext(ContextSettings settings)
        {
            HttpApplication app = settings.HttpApplication;

            app.BeginRequest     += (sender, args) => BeginRequest(app.Context);
            app.AuthorizeRequest += (sender, args) => AuthorizeRequest();
//            app.EndRequest += (sender, args) => Dispose();
        }
Beispiel #2
0
        public static void Initialize(ContextSettings settings)
        {
            PortalContext context = new PortalContext(settings);

            context.SetVirtualResourceData(ImageDefaultKey, new VirtualResourceData(ImagesNamespace, ResourceAssemblyName));
            context.SetVirtualResourceData(StyleDefaultKey, new VirtualResourceData(StyleNamespace, ResourceAssemblyName));
            context.SetVirtualResourceData(ScriptDefaultKey, new VirtualResourceData(ScriptNamespace, ResourceAssemblyName));
            context.SetVirtualResourceData(ModuleDefaultKey, new VirtualResourceData(ModulesNamespace, ResourceAssemblyName));
            context.SetVirtualResourceData("Admin", new VirtualResourceData(ModulesNamespace + ".Admin", ResourceAssemblyName));
        }