Mineplex2018-withcommit/Website/LOC.Website.Web/App_Start/StructuremapMvc.cs

15 lines
440 B
C#
Raw Normal View History

2013-08-27 17:14:08 +02:00
using LOC.Website.Web.App_Start;
[assembly: WebActivator.PreApplicationStartMethod(typeof(StructuremapMvc), "Start")]
namespace LOC.Website.Web.App_Start {
using System.Web.Mvc;
using DependencyResolution;
public static class StructuremapMvc {
public static void Start() {
var container = IoC.Initialize();
DependencyResolver.SetResolver(new SmDependencyResolver(container));
}
}
}