示例#1
0
 static Dojector()
 {
     multiBindMap = InternalFactory.Get <IMultiBindCollection>();
     dependencies = InternalFactory.Get <IDependencyRepository>();
     injector     = InternalFactory.Get <IDependencyInjector>();
     binder       = InternalFactory.Get <IDependencyBinder>();
 }
示例#2
0
文件: Loader.cs 项目: KKrasnov/tetris
        /// <summary>
        /// Main entry point.
        /// </summary>
        private void InitializeApplication()
        {
            var appConfig = new DependencyResolver();

            IDependencyBinder binder = GetComponent <IDependencyBinder>();//no time for fancy solution

            binder.ConfigureDependencies(appConfig);

            var appRunner = new AppRunner(appConfig);

            appRunner.ExecuteApplicationFlow();
        }
示例#3
0
 protected virtual void BindServices(IDependencyBinder binder)
 {
 }
示例#4
0
 protected virtual void BindSystems(IDependencyBinder binder)
 {
 }
示例#5
0
 public AppHost(IDependencyBinder binder, IConfigurationRoot configurationRoot)
 {
     _binder            = binder;
     _configurationRoot = configurationRoot;
 }