示例#1
0
        public override void InstallBindings()
        {
            var repository = new HandleRepository();

            Container.Bind(new[]
            {
                typeof(HandleRepository),
                typeof(IHandleRepository),
            })
            .FromInstance(repository);
        }
示例#2
0
 public void Inject(HandleRepository handleRepository)
 {
     _repository   = handleRepository;
     _localHandles = GetComponents <IHandle>();
     _repository.AddHandles(_localHandles);
 }