Exemplo n.º 1
0
        public static IAppBuilder UseLancheProject(this IAppBuilder appBuilder)
        {
            CoreBootstrapper bootStrapper = new CoreBootstrapper();

            bootStrapper.IocManager.Register<IAssemblyFinder,WebAssemblyFinder>();
            bootStrapper.Initialize();
            return appBuilder;
        }
        private void Application_Start()
        {
            TestAssemblyFinder finder = new TestAssemblyFinder();

            _iocManager = IocManager.Instance;
            _iocManager.Register(typeof(IAssemblyFinder), typeof(TestAssemblyFinder), DependencyLifeStyle.Singleton);
            CoreBootstrapper core = new CoreBootstrapper(_iocManager);
            core.Initialize();
        }