Permalink
Browse files

initialize registry

  • Loading branch information...
1 parent d919def commit be4c3e07ed6be3c60edc35e062e38b711285123f @friism committed May 24, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 RavenDBTest/Global.asax.cs
@@ -2,12 +2,12 @@
using System.Web.Routing;
using Raven.Client.Document;
using RavenDBTest.Mvc;
+using StructureMap;
namespace RavenDBTest
{
public class MvcApplication : System.Web.HttpApplication
{
-
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
@@ -23,6 +23,8 @@ protected void Application_Start()
{
GlobalFilters.Filters.Add(new RavenSessionAttribute());
+ ObjectFactory.Initialize(ie => ie.AddRegistry<StructureMapConfigurationRegistry>());
+
ControllerBuilder.Current.SetControllerFactory(typeof(StructureMapControllerFactory));
AreaRegistration.RegisterAllAreas();

0 comments on commit be4c3e0

Please sign in to comment.