protected override void ApplicationStartup(IUnityContainer container, Bootstrapper.IPipelines pipelines)
        {
            RequestContainerConfigured = true;

            container.RegisterType <IFoo, Foo>(new ContainerControlledLifetimeManager());
            container.RegisterType <IDependency, Dependency>(new ContainerControlledLifetimeManager());
        }
Example #2
0
 protected override void ApplicationStartup(TinyIoc.TinyIoCContainer container, Bootstrapper.IPipelines pipelines)
 {
     //启用session
     CookieBasedSessions.Enable(pipelines);
 }
Example #3
0
        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);
 }