C# Класс LinFu.IoC.Interceptors.ProxyInjector

Represents a class that automatically injects a proxy instance instead of an actual service instance.
Наследование: IPostProcessor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

PostProcess() публичный Метод

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.
Результат void

ProxyInjector() публичный Метод

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.
Результат System