コード例 #1
0
        private static IUnityContainer BuildUnityContainer()
        {
            UnityService.Init();
            var container = UnityService.Current;

            // register all your components with the container here
            // it is NOT necessary to register your controllers

            // e.g. container.RegisterType<ITestService, TestService>();
            return(container);
        }