示例#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));
        }
示例#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));
        }