예제 #1
0
 public bool GetIsRequireCache(FactoryDefinition factory)
 {
     return(!IsTransient &&
            !IsAlternatedByCapture(factory) &&
            !IsAlternatedByDelegation());
 }
예제 #2
0
 public bool GetRequireDispose(FactoryDefinition factory)
 {
     return(Resolution.IsDisposable && GetIsRequireCache(factory));
 }