C# Class Nancy.Bootstrappers.Windsor.NancyRequestScopeInterceptorSelector

Inheritance: IModelInterceptorsSelector
显示文件 Open project: NancyFx/Nancy.Bootstrappers.Windsor

Public Methods

Method 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 method

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
return bool

SelectInterceptors() public method

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.
return Castle.Core.InterceptorReference[]