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