static Dojector() { multiBindMap = InternalFactory.Get <IMultiBindCollection>(); dependencies = InternalFactory.Get <IDependencyRepository>(); injector = InternalFactory.Get <IDependencyInjector>(); binder = InternalFactory.Get <IDependencyBinder>(); }
/// <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(); }
protected virtual void BindServices(IDependencyBinder binder) { }
protected virtual void BindSystems(IDependencyBinder binder) { }
public AppHost(IDependencyBinder binder, IConfigurationRoot configurationRoot) { _binder = binder; _configurationRoot = configurationRoot; }