Exemplo n.º 1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     RegisterRoutes(RouteTable.Routes);
     RavenDbHelper.ConfigureRaven(ObjectFactory.Container);
     DependencyResolver.SetResolver(new StructureMapDependencyResolver(ObjectFactory.Container));
 }
        protected override void ApplicationStartup(IContainer container, IPipelines pipelines)
        {
            base.ApplicationStartup(container, pipelines);
            RavenDbHelper.ConfigureRaven(container);

            container.Configure(x => x.SelectConstructor(() => new FakeNancyModule()));
        }
Exemplo n.º 3
0
 protected void Application_EndRequest(object sender, EventArgs args)
 {
     RavenDbHelper.CleanUp(ObjectFactory.Container);
     ObjectFactory.ReleaseAndDisposeAllHttpScopedObjects();
 }