/// <summary>Initialize the container and register it as MVC3 Dependency Resolver.</summary> public static void Initialize() { var container = new Container(); ContainerRegistration.InitializeContainer(container); container.RegisterControllers(Assembly.GetExecutingAssembly()); container.Verify(); container.RegisterAsMvcDependencyResolver(); container.RegisterAttributeFilterProvider(); }
public static void Register() { var container = new Container(); RegisterRavenDB(container); RegisterTransitServices(container); container.Verify(); container.RegisterAsDependencyResolver(GlobalConfiguration.Configuration); container.RegisterAttributeFilterProvider(GlobalConfiguration.Configuration); }