1
0
Files
mineplex-crepe/Website/LOC.Website.Web/App_Start/StructuremapMvc.cs

15 lines
440 B
C#
Raw Normal View History

2021-08-19 16:35:32 +07: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));
}
}
}