SelectInterceptors Method

Glimpse API

AlternateTypeSelector SelectInterceptors Method Glimpse API Documentation
Selects the interceptors that should intercept calls to the given method.

Namespace: Glimpse.Core.Extensibility
Assembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)

Syntax

public IInterceptor[] SelectInterceptors(
	Type type,
	MethodInfo method,
	IInterceptor[] interceptors
)
public IInterceptor[] SelectInterceptors(
	Type type,
	MethodInfo method,
	IInterceptor[] interceptors
)

Parameters

type
Type: OnlineSystem Type
The type declaring the method to intercept.
method
Type: OnlineSystem.Reflection MethodInfo
The method that will be intercepted.
interceptors
Type:  IInterceptor 
All interceptors registered with the proxy.

Return Value

An array of interceptors to invoke upon calling the method.

Implements

IInterceptorSelectorSelectInterceptors(Type, MethodInfo,  IInterceptor )
Remarks

This method is called only once per proxy instance, upon the first call to the method. Either an empty array or null are valid return values to indicate that no interceptor should intercept calls to the method. Although it is not advised, it is legal to return other IInterceptor implementations than these provided in interceptors.
See Also