/// <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)); }
/// <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)); }
/// <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)); }