Пример #1
0
 /// <summary>
 /// Register an Action to run against any object of this PluginType immediately after
 /// it is created, but before the new object is passed back to the caller
 /// </summary>
 /// <param name="description">Descriptive text for diagnostics</param>
 /// <param name="handler"></param>
 /// <param name="filter"></param>
 public CreatePluginFamilyExpression <TPluginType> OnCreationForAll(string description,
                                                                    Action <IContext, TPluginType> handler, Func <Instance, bool> filter = null)
 {
     return(InterceptWith(InterceptorFactory.ForAction(description, handler), filter));
 }