public override void CascadeActivation(IActivationContext context) { if (!Handlers4.IsCascading(_typeHandler)) { return; } Handlers4.CascadeActivation(context, _typeHandler); }
public virtual void CascadeActivation(IActivationContext context) { object targetObject = context.TargetObject(); if (IsPlainObject(targetObject)) { return; } ITypeHandler4 typeHandler = TypeHandlerForObject(targetObject); Handlers4.CascadeActivation(context, typeHandler); }
public sealed override void CascadeActivation(IActivationContext context) { if (!Alive()) { return; } object cascadeTo = CascadingTarget(context); if (cascadeTo == null) { return; } IActivationContext cascadeContext = context.ForObject(cascadeTo); ClassMetadata classMetadata = cascadeContext.ClassMetadata(); if (classMetadata == null) { return; } EnsureObjectIsActive(cascadeContext); Handlers4.CascadeActivation(cascadeContext, classMetadata.TypeHandler()); }