protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); DependencyResolver.SetResolver(new UnityDependencyResolver(UnityConfig.Init())); }
/// <inheritdoc /> protected override void OnStartup(StartupEventArgs e) { //KeyHandler.RegisterKeyHandler(); UnityConfig.Init(); base.OnStartup(e); var interceptMouse = new InputInterceptor(); interceptMouse.Start(); IoC.RegisterInstance(interceptMouse); ShutdownMode = ShutdownMode.OnMainWindowClose; //var enumerable = AppDomain.CurrentDomain.GetAssemblies().SelectMany(f => f.GetTypes()) // .Where(f => f.GetCustomAttribute<SubSpaceExportAttribute>() != null); //foreach (var type in enumerable) //{ // var subSpaceExport = Activator.CreateInstance(type) as ISubSpaceExport; // if (subSpaceExport != null) // { // subSpaceExport.OnStart(); // } //} }
public void Configuration(IAppBuilder app) { Configuration(app, UnityConfig.Init()); }
public OrderServiceTestServer() { container = UnityConfig.Init(); }