示例#1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     DependencyResolver.SetResolver(new UnityDependencyResolver(UnityConfig.Init()));
 }
示例#2
0
        /// <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();
            //	}
            //}
        }
示例#3
0
 public void Configuration(IAppBuilder app)
 {
     Configuration(app, UnityConfig.Init());
 }
示例#4
0
 public OrderServiceTestServer()
 {
     container = UnityConfig.Init();
 }