C# Class Nancy.Bootstrappers.Windsor.NancyRequestScopeInterceptorSelector

Inheritance: IModelInterceptorsSelector
Afficher le fichier Open project: NancyFx/Nancy.Bootstrappers.Windsor

Méthodes publiques

Méthode Description
HasInterceptors ( ComponentModel model ) : bool

Determine whatever the specified has interceptors. The selector should only return true from this method if it has determined that is a model that it would likely add interceptors to.

SelectInterceptors ( ComponentModel model, InterceptorReference interceptors ) : Castle.Core.InterceptorReference[]

Select the appropriate interceptor references. The interceptor references aren't necessarily registered in the model.Intereceptors

If the selector is not interested in modifying the interceptors for this model, it should return interceptors and the next selector in line would be executed. If the selector wants no interceptors to be used it can either return null or empty array. However next interceptor in line is free to override this choice.

Method Details

HasInterceptors() public méthode

Determine whatever the specified has interceptors. The selector should only return true from this method if it has determined that is a model that it would likely add interceptors to.
public HasInterceptors ( ComponentModel model ) : bool
model Castle.Core.ComponentModel The model
Résultat bool

SelectInterceptors() public méthode

Select the appropriate interceptor references. The interceptor references aren't necessarily registered in the model.Intereceptors
If the selector is not interested in modifying the interceptors for this model, it should return interceptors and the next selector in line would be executed. If the selector wants no interceptors to be used it can either return null or empty array. However next interceptor in line is free to override this choice.
public SelectInterceptors ( ComponentModel model, InterceptorReference interceptors ) : Castle.Core.InterceptorReference[]
model Castle.Core.ComponentModel The model to select the interceptors for
interceptors Castle.Core.InterceptorReference The interceptors selected by previous selectors in the pipeline or if this is the first interceptor in the pipeline.
Résultat Castle.Core.InterceptorReference[]