C# Class LinFu.IoC.Interceptors.ProxyInjector

Represents a class that automatically injects a proxy instance instead of an actual service instance.
Inheritance: IPostProcessor
Mostrar archivo Open project: philiplaureano/LinFu Class Usage Examples

Public Methods

Method Description
PostProcess ( IServiceRequestResult result ) : void

A method that injects service proxies in place of the actual IServiceRequestResult.ActualResult.

ProxyInjector ( bool>.Func filterPredicate, object>.Func createProxy ) : System

Initializes the class with the filterPredicate and the createProxy factory method.

Method Details

PostProcess() public method

A method that injects service proxies in place of the actual IServiceRequestResult.ActualResult.
public PostProcess ( IServiceRequestResult result ) : void
result IServiceRequestResult The instance that describes the service request.
return void

ProxyInjector() public method

Initializes the class with the filterPredicate and the createProxy factory method.
public ProxyInjector ( bool>.Func filterPredicate, object>.Func createProxy ) : System
filterPredicate bool>.Func The predicate that will determine which service requests will be proxied.
createProxy object>.Func The factory method that will generate the proxy instance itself.
return System