C# Class NProxy.Core.Interceptors.InterceptorInvocationHandler

Inheritance: IInvocationHandler
Mostra file Open project: mtamme/NProxy Class Usage Examples

Public Methods

Method Description
ApplyInterceptors ( IProxyTemplate proxyTemplate, IEnumerable interceptors ) : void

Applies all interceptors for the specified proxy template.

InterceptorInvocationHandler ( IInterceptor defaultInterceptors ) : System

Initializes a new instance of the InterceptorInvocationHandler class.

Invoke ( object target, MethodInfo methodInfo, object parameters ) : object

Private Methods

Method Description
ApplyInterceptionBehaviors ( MemberInfo memberInfo, IEnumerable interceptors ) : List

Applies the interception behaviors for the specified member.

ApplyInterceptors ( EventInfo eventInfo, IEnumerable interceptors ) : void

Applies all interceptors for the specified event.

ApplyInterceptors ( MemberInfo memberInfo, IEnumerable interceptors ) : void

Applies all interceptors for the specified member.

ApplyInterceptors ( PropertyInfo propertyInfo, IEnumerable interceptors ) : void

Applies all interceptors for the specified property.

GetInterceptors ( MemberInfo memberInfo ) : IInterceptor[]

Returns all interceptors for the specified member.

Method Details

ApplyInterceptors() public method

Applies all interceptors for the specified proxy template.
public ApplyInterceptors ( IProxyTemplate proxyTemplate, IEnumerable interceptors ) : void
proxyTemplate IProxyTemplate The proxy template.
interceptors IEnumerable The interceptors.
return void

InterceptorInvocationHandler() public method

Initializes a new instance of the InterceptorInvocationHandler class.
public InterceptorInvocationHandler ( IInterceptor defaultInterceptors ) : System
defaultInterceptors IInterceptor The default interceptors.
return System

Invoke() public method

public Invoke ( object target, MethodInfo methodInfo, object parameters ) : object
target object
methodInfo System.Reflection.MethodInfo
parameters object
return object