Пример #1
0
 public IUnityContainer ByFactoryFuncLazy <TParam1, TParam2, TParam3, TParam4>(Func <TParam1, TParam2, TParam3, TParam4, TResult> factoryFunc, params ResolvedParameter[] resolvedParameters)
 {
     return(ByFactoryFunc <Func <TParam1>, Func <TParam2>, Func <TParam3>, Func <TParam4> >((param1Func, param2Func, param3Func, param4Func) => LazyProxy.GetLazyProxy(() => factoryFunc(param1Func(), param2Func(), param3Func(), param4Func())), resolvedParameters));
 }
Пример #2
0
 public IUnityContainer ByFactoryFuncLazy(Func <TResult> factoryFunc)
 {
     return(ByFactoryFunc(() => LazyProxy.GetLazyProxy(() => factoryFunc())));
 }