IServiceDescriptorTypeSelector Methods
InterfaceMethods4 members
The Compiled Implementation Type Selector
Adds all public, non-abstract classes from the selected assemblies to the
DependencyInjection.IServiceCollection . public interface IServiceDescriptorTypeSelector{ public abstract IServiceTypeSelector AddClasses() { // ... }} Adds all non-abstract classes from the selected assemblies to the
DependencyInjection.IServiceCollection . public interface IServiceDescriptorTypeSelector{ public abstract IServiceTypeSelector AddClasses( bool publicOnly) { // ... }}Parameters
publicOnly boolSpecifies whether too add public types only.AddClasses(Action<ITypeFilter>) Section titled AddClasses(Action<ITypeFilter>)abstractI Adds all public, non-abstract classes from the selected assemblies that matches the requirements specified in the
action to the DependencyInjection.IServiceCollection . public interface IServiceDescriptorTypeSelector{ public abstract IServiceTypeSelector AddClasses( Action<ITypeFilter> action) { // ... }}Parameters
actionAction<ITypeFilter> The filtering action.Exceptions
ArgumentNullExceptionIf the action argument is null.AddClasses(Action<ITypeFilter>, bool) Section titled AddClasses(Action<ITypeFilter>, bool)abstractI Adds all non-abstract classes from the selected assemblies that matches the requirements specified in the
action to the DependencyInjection.IServiceCollection . public interface IServiceDescriptorTypeSelector{ public abstract IServiceTypeSelector AddClasses( Action<ITypeFilter> action, bool publicOnly) { // ... }}Parameters
actionAction<ITypeFilter> The filtering action.publicOnly boolSpecifies whether too add public types only.Exceptions
ArgumentNullExceptionIf the action argument is null.
