LinFu.IoC.Interceptors.ProxyInjector.ProxyInjector C# (CSharp) Method

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
        public ProxyInjector(Func<IServiceRequestResult, bool> filterPredicate,
            Func<IServiceRequestResult, object> createProxy)
        {
            _filterPredicate = filterPredicate;
            _createProxy = createProxy;
        }