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