Esempio n. 1
0
 private static void RegisterMultiple(ObjectResolver resolver)
 {
     resolver.RegisterCollection <IMulti>(new[] { typeof(Multi1), typeof(Multi2), typeof(Multi3), typeof(Multi4) });
     resolver.Register <MultipleObject1, MultipleObject1>();
     resolver.Register <MultipleObject2, MultipleObject2>();
     resolver.Register <MultipleObject3, MultipleObject3>();
 }
Esempio n. 2
0
 private static void RegisterMultiple(ObjectResolver resolver)
 {
     resolver.RegisterCollection <ISimpleAdapter>(new[]
     {
         typeof(SimpleAdapterOne),
         typeof(SimpleAdapterTwo),
         typeof(SimpleAdapterThree),
         typeof(SimpleAdapterFour),
         typeof(SimpleAdapterFive)
     });
     resolver.Register <ImportMultiple1, ImportMultiple1>();
     resolver.Register <ImportMultiple2, ImportMultiple2>();
     resolver.Register <ImportMultiple3, ImportMultiple3>();
 }