C# Class LinFu.Proxy.Interfaces.FunctorAsInterceptor

A class that converts a functor into an IInterceptor instance.
Inheritance: IInterceptor
Exibir arquivo Open project: philiplaureano/LinFu Class Usage Examples

Public Methods

Method Description
FunctorAsInterceptor ( object>.Func intercept ) : System

Initializes the class with the given functor.

Intercept ( IInvocationInfo info ) : object

A method that redirects the method calls to the functor instance.

Method Details

FunctorAsInterceptor() public method

Initializes the class with the given functor.
public FunctorAsInterceptor ( object>.Func intercept ) : System
intercept object>.Func The functor that will be invoked every time a method is called on the proxy type.
return System

Intercept() public method

A method that redirects the method calls to the functor instance.
public Intercept ( IInvocationInfo info ) : object
info IInvocationInfo The instance that describes the context of the method call.
return object