Beispiel #1
0
 public static ArgConditionCopyNonLazyBinder FromPoolableMemoryPool <TContract>(
     this FactoryFromBinder <TContract> fromBinder)
 // Unfortunately we have to pass the same contract in again to satisfy the generic
 // constraints below
     where TContract : IPoolable <IMemoryPool>
 {
     return(fromBinder.FromPoolableMemoryPool <TContract>(x => {}));
 }
Beispiel #2
0
 public static ArgConditionCopyNonLazyBinder FromMonoPoolableMemoryPool <TContract>(
     this FactoryFromBinder <TContract> fromBinder,
     Action <MemoryPoolInitialSizeMaxSizeBinder <TContract> > poolBindGenerator)
 // Unfortunately we have to pass the same contract in again to satisfy the generic
 // constraints below
     where TContract : Component, IPoolable <IMemoryPool>
 {
     return(fromBinder.FromPoolableMemoryPool <TContract, MonoPoolableMemoryPool <IMemoryPool, TContract> >(poolBindGenerator));
 }