Skip to content

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)
{
// ...
}
}
publicOnlyboolSpecifies whether too add public types only.
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)
{
// ...
}
}
actionAction<ITypeFilter>The filtering action.
ArgumentNullExceptionIf the action argument is null.
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)
{
// ...
}
}
actionAction<ITypeFilter>The filtering action.
publicOnlyboolSpecifies whether too add public types only.
ArgumentNullExceptionIf the action argument is null.