Exemplo n.º 1
0
 public static IIocRegistrator RegisterAssembliesSingleton(
     this IIocRegistrator registrator,
     IEnumerable <Assembly> assemblies = null,
     Func <Type, bool> typeSelector    = null,
     bool autoInjectProperty           = false)
 {
     return(registrator.RegisterAssemblies(assemblies,
                                           typeSelector, autoInjectProperty, DependencyLifeTime.Singleton));
 }
Exemplo n.º 2
0
 public static IIocRegistrator RegisterAssemblySingleton(
     this IIocRegistrator registrator,
     Assembly assembly,
     Func <Type, bool> typeSelector = null,
     bool autoInjectProperty        = false)
 {
     Check.NotNull(assembly, nameof(assembly));
     return(registrator.RegisterAssemblies(new[] { assembly },
                                           typeSelector, autoInjectProperty, DependencyLifeTime.Singleton));
 }