Exemplo n.º 1
0
 internal static IIocRegistrator RegisterMany <TImplementation>(
     this IIocRegistrator registrator,
     bool autoInjectProperty     = false,
     DependencyLifeTime lifeTime = DependencyLifeTime.Transient)
 {
     registrator.AsDryIocManager().IocContainer
     .RegisterMany <TImplementation>(
         DryIocMannager.ConvertLifetimeToReuse(lifeTime),
         autoInjectProperty ? PropertiesAndFields.Auto : null);
     return(registrator);
 }
Exemplo n.º 2
0
 internal static IIocRegistrator RegisterMany(
     this IIocRegistrator registrator,
     IEnumerable <Type> seviceTypes,
     Type implementationType,
     bool autoInjectProperty     = false,
     DependencyLifeTime lifeTime = DependencyLifeTime.Transient)
 {
     registrator.AsDryIocManager().IocContainer.RegisterMany(
         seviceTypes.ToArray(),
         implementationType,
         DryIocMannager.ConvertLifetimeToReuse(lifeTime),
         autoInjectProperty ? PropertiesAndFields.Auto : null);
     return(registrator);
 }