Ejemplo n.º 1
0
        public ConditionBinder FromMethod(ModestTree.Util.Func <DiContainer, TParam1, TParam2, TParam3, TParam4, TParam5, TContract> method)
        {
            SubFinalizer = CreateFinalizer(
                (container) => new MethodProviderWithContainer <TParam1, TParam2, TParam3, TParam4, TParam5, TContract>(method));

            return(this);
        }
Ejemplo n.º 2
0
        public ConditionCopyNonLazyBinder FromMethod(ModestTree.Util.Func <DiContainer, TParam1, TParam2, TParam3, TParam4, TContract> method)
        {
            ProviderFunc =
                (container) => new MethodProviderWithContainer <TParam1, TParam2, TParam3, TParam4, TContract>(method);

            return(this);
        }
        public ConditionCopyNonLazyBinder FromMethod(
#if !NET_4_6
            ModestTree.Util.
#endif
            Func <DiContainer, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TContract> method)
        {
            ProviderFunc =
                container => new MethodProviderWithContainer <TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TContract>(method);

            return(this);
        }
Ejemplo n.º 4
0
        public ConditionCopyNonLazyBinder FromMethod(
#if !NET_4_6 && !NET_STANDARD_2_0
            ModestTree.Util.
#endif
            Func <DiContainer, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TContract> method)
        {
            ProviderFunc =
                (container) => new MethodProviderWithContainer <TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TContract>(method);

            return(this);
        }