protected override void ApplicationStartup(IUnityContainer container, Bootstrapper.IPipelines pipelines) { RequestContainerConfigured = true; container.RegisterType <IFoo, Foo>(new ContainerControlledLifetimeManager()); container.RegisterType <IDependency, Dependency>(new ContainerControlledLifetimeManager()); }
protected override void ApplicationStartup(TinyIoc.TinyIoCContainer container, Bootstrapper.IPipelines pipelines) { //启用session CookieBasedSessions.Enable(pipelines); }
protected override void ApplicationStartup(TinyIoc.TinyIoCContainer container, Bootstrapper.IPipelines pipelines) { base.ApplicationStartup(container, pipelines); this.EnableRapidCache(container.Resolve <IRouteResolver>(), ApplicationPipelines); pipelines.AfterRequest.AddItemToStartOfPipeline(ConfigureCache); }
protected override void ApplicationStartup(TinyIoc.TinyIoCContainer container, Bootstrapper.IPipelines pipelines) { base.ApplicationStartup(container, pipelines); }