Esempio n. 1
0
        /// <summary>
        /// Inline dependency by simple Lambda expression
        /// </summary>
        /// <param name="func"></param>
        /// <returns></returns>
        public ConstructorInstance Is(Func <IContainer, TChild> func)
        {
            var child = LambdaInstance.For(func);

            return(Is(child));
        }
Esempio n. 2
0
        /// <summary>
        /// Inline dependency by simple Lambda expression
        /// </summary>
        /// <param name="func"></param>
        /// <returns></returns>
        public ConstructorInstance Is(Func <IServiceContext, TChild> func)
        {
            var child = LambdaInstance.For(func);

            return(Is(child));
        }