Beispiel #1
0
        public MemoryPoolExpandBinder(
            DiContainer bindContainer, BindInfo bindInfo, FactoryBindInfo factoryBindInfo, MemoryPoolBindInfo poolBindInfo)
            : base(bindContainer, bindInfo, factoryBindInfo)
        {
            MemoryPoolBindInfo = poolBindInfo;

            ExpandByOneAtATime();
        }
Beispiel #2
0
        public MemoryPoolBindingFinalizer(
            BindInfo.BindInfo bindInfo, FactoryBindInfo factoryBindInfo, MemoryPoolBindInfo poolBindInfo)
            : base(bindInfo)
        {
            // Note that it doesn't derive from MemoryPool<TContract>
            // when used with To<>, so we can only check IMemoryPoolBase
            Assert.That(factoryBindInfo.FactoryType.DerivesFrom <IMemoryPool>());

            _factoryBindInfo = factoryBindInfo;
            _poolBindInfo    = poolBindInfo;
        }
 public MemoryPoolIdInitialSizeMaxSizeBinder(
     DiContainer bindContainer, BindInfo bindInfo, FactoryBindInfo factoryBindInfo,
     MemoryPoolBindInfo poolBindInfo)
     : base(bindContainer, bindInfo, factoryBindInfo, poolBindInfo)
 {
 }
 public MemoryPoolInitialSizeBinder(
     BindInfo bindInfo, FactoryBindInfo factoryBindInfo, MemoryPoolBindInfo poolBindInfo)
     : base(bindInfo, factoryBindInfo, poolBindInfo)
 {
 }