public static Lazy <IEnumerable <object> > LazyGetAllComponents(this IComposer composer, Type contract, string name) { return(new Lazy <IEnumerable <object> >(() => composer.GetAllComponents(contract, name))); }
public static Lazy <IEnumerable <TContract> > LazyGetAllComponents <TContract>(this IComposer composer, string name) where TContract : class { return(new Lazy <IEnumerable <TContract> >(() => composer.GetAllComponents <TContract>(name))); }