public override void InstallBindings() { var repository = new HandleRepository(); Container.Bind(new[] { typeof(HandleRepository), typeof(IHandleRepository), }) .FromInstance(repository); }
public void Inject(HandleRepository handleRepository) { _repository = handleRepository; _localHandles = GetComponents <IHandle>(); _repository.AddHandles(_localHandles); }