C# Class LinFu.IoC.Interceptors.InterceptorAttributeLoader

The class responsible for loading interceptors marked with the InterceptsAttribute class.
Inheritance: ITypeLoader
ファイルを表示 Open project: philiplaureano/LinFu

Public Methods

Method Description
CanLoad ( Type inputType ) : bool

Determines whether or not a target type is an interceptor.

Load ( Type input ) : IEnumerable>

Loads an IInterceptor derived class into a particular IServiceContainer instance so that the current interceptor type can intercept calls made to services created from the given target container.

Private Methods

Method Description
CreateProxyFrom ( IServiceRequestResult request, IInterceptor>.Func getInterceptor ) : object

Generates a proxy instance from an existing IServiceRequestResult instance.

InterceptorAttributeLoader ( ILoader loaderHost ) : System

Initializes the class with the given loaderHost.

Method Details

CanLoad() public method

Determines whether or not a target type is an interceptor.
public CanLoad ( Type inputType ) : bool
inputType System.Type The target type currently being tested.
return bool

Load() public method

Loads an IInterceptor derived class into a particular IServiceContainer instance so that the current interceptor type can intercept calls made to services created from the given target container.
public Load ( Type input ) : IEnumerable>
input System.Type The interceptor type.
return IEnumerable>