Exemplo n.º 1
0
        /// <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 ConstructorInstance Is(string description, Func <IContainer, TChild> func)
        {
            var child = LambdaInstance.For(func);

            child.Description = description;
            return(Is(child));
        }
Exemplo n.º 2
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));
        }
Exemplo n.º 3
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));
        }