コード例 #1
0
        public void Setup(IDependencyContainer container)
        {
            var namedHealthGroup    = container.ResolveObservableGroup(new Group(typeof(HasHealthComponent), typeof(HasNameComponent)));
            var computedHealthGroup = new LowestHealthComputedGroup(namedHealthGroup);

            container.Bind <ILowestHealthComputedGroup>(x => x.ToInstance(computedHealthGroup));
        }