public virtual void Apply(ContentAreaRenderingContext context, TagBuilder tagBuilder) { if (context.IsRenderingContentArea()) { ApplyCore(context, tagBuilder, "customattributes"); } else if (context.IsRenderingContentAreaItem()) { ApplyCore(context, tagBuilder, "childrencustomattributes"); } }
protected override bool ShouldApply(ContentAreaRenderingContext context, TagBuilder tagBuilder) { return(context.IsRenderingContentArea()); }