public void Activating(ActivatingContentContext context) { if (_predicate(context.ContentType)) { context.Builder.Weld <TPart>(); } }
void IContentHandler.Activating(ActivatingContentContext context) { foreach (var filter in Filters.OfType <IContentActivatingFilter>()) { filter.Activating(context); } Activating(context); }
protected virtual void Activating(ActivatingContentContext context) { }