public bool GetIsRequireCache(FactoryDefinition factory) { return(!IsTransient && !IsAlternatedByCapture(factory) && !IsAlternatedByDelegation()); }
public bool GetRequireDispose(FactoryDefinition factory) { return(Resolution.IsDisposable && GetIsRequireCache(factory)); }