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)); }
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)); }