public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode mode) { Record(new MethodCall("activationDepthFor", new object[] { classMetadata, mode }) ); return _delegate.ActivationDepthFor(classMetadata, mode); }
public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode) { if (int.MaxValue == depth) { return(new FullActivationDepth(mode)); } return(new FixedActivationDepth(depth, mode)); }
public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode) { if (int.MaxValue == depth) { return new FullActivationDepth(mode); } return new FixedActivationDepth(depth, mode); }
public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode mode) { if (mode.IsPrefetch()) { return new LegacyActivationDepth(1, mode); } int globalLegacyActivationDepth = ConfigImpl(classMetadata).ActivationDepth(); Config4Class config = classMetadata.ConfigOrAncestorConfig(); int defaultDepth = null == config ? globalLegacyActivationDepth : config.AdjustActivationDepth (globalLegacyActivationDepth); return new LegacyActivationDepth(defaultDepth, mode); }
public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode mode) { if (IsTAAware(classMetadata)) { return new NonDescendingActivationDepth(mode); } if (mode.IsPrefetch()) { return new FixedActivationDepth(1, mode); } return new DescendingActivationDepth(this, mode); }
protected ActivationDepthImpl(ActivationMode mode) { _mode = mode; }
public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode) { return(new LegacyActivationDepth(depth, mode)); }
public NonDescendingActivationDepth(ActivationMode mode) : base(mode) { }
public LegacyActivationDepth(int depth, ActivationMode mode) : base(mode) { _depth = depth; }
public DescendingActivationDepth(IActivationDepthProvider provider, ActivationMode mode) : base(mode) { _provider = provider; }
private bool ActivatingActiveObject(ActivationMode mode, ObjectReference @ref) { return !mode.IsRefresh() && @ref.IsActive(); }
public FullActivationDepth(ActivationMode mode) : base(mode) { }
public FixedActivationDepth(int depth, ActivationMode mode) : base(mode) { _depth = depth; }
public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode) { Record(new MethodCall("activationDepth", new object[] { depth, mode })); return _delegate.ActivationDepth(depth, mode); }
public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode mode) { if (IsTAAware(classMetadata)) { return(new NonDescendingActivationDepth(mode)); } if (mode.IsPrefetch()) { return(new FixedActivationDepth(1, mode)); } return(new DescendingActivationDepth(this, mode)); }
private void AssertFullActivationDepthForMaxValue(ActivationMode mode) { Assert.IsInstanceOf(typeof(FullActivationDepth), Provider().ActivationDepth(int.MaxValue , mode)); }
public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode) { return new LegacyActivationDepth(depth, mode); }
public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode mode) { if (mode.IsPrefetch()) { return(new LegacyActivationDepth(1, mode)); } int globalLegacyActivationDepth = ConfigImpl(classMetadata).ActivationDepth(); Config4Class config = classMetadata.ConfigOrAncestorConfig(); int defaultDepth = null == config ? globalLegacyActivationDepth : config.AdjustActivationDepth (globalLegacyActivationDepth); return(new LegacyActivationDepth(defaultDepth, mode)); }