/// <summary>
        /// Inline dependency by Lambda Func that uses IContext
        /// </summary>
        /// <param name="description">User friendly description for diagnostics</param>
        /// <param name="func"></param>
        /// <returns></returns>
        public TInstance Is(string description, Func <IContext, TChild> func)
        {
            var child = new LambdaInstance <TChild>(description, func);

            return(Is(child));
        }
Beispiel #2
0
            public SmartInstance <T> Is(Func <IContext, CHILD> func)
            {
                var child = new LambdaInstance <CHILD>(func);

                return(Is(child));
            }
        /// <summary>
        /// Inline dependency by Lambda expression that uses IContext
        /// </summary>
        /// <param name="func"></param>
        /// <returns></returns>
        public TInstance Is(Expression <Func <IContext, TChild> > func)
        {
            var child = new LambdaInstance <TChild>(func);

            return(Is(child));
        }