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