Skip to content

IServiceDescriptorTypeSelector Interface

Definition

The Compiled Implementation Type Selector

C#
public interface IServiceDescriptorTypeSelector : IServiceDescriptorAssemblySelector

Methods

AddClasses()

Adds all public, non-abstract classes from the selected assemblies to the IServiceCollection.

C#
IServiceTypeSelector AddClasses()

Returns

IServiceTypeSelector

AddClasses(bool)

Adds all non-abstract classes from the selected assemblies to the IServiceCollection.

C#
IServiceTypeSelector AddClasses(bool publicOnly)

Parameters

publicOnly bool
Specifies whether too add public types only.

Returns

IServiceTypeSelector

AddClasses(Action<ITypeFilter>)

Adds all public, non-abstract classes from the selected assemblies that matches the requirements specified in the action to the IServiceCollection.

C#
IServiceTypeSelector AddClasses(Action<ITypeFilter> action)

Parameters

action Action<ITypeFilter>
The filtering action.

Returns

IServiceTypeSelector

Exceptions

ArgumentNullException
If the action argument is null.

AddClasses(Action<ITypeFilter>, bool)

Adds all non-abstract classes from the selected assemblies that matches the requirements specified in the action to the IServiceCollection.

C#
IServiceTypeSelector AddClasses(Action<ITypeFilter> action, bool publicOnly)

Parameters

action Action<ITypeFilter>
The filtering action.

publicOnly bool
Specifies whether too add public types only.

Returns

IServiceTypeSelector

Exceptions

ArgumentNullException
If the action argument is null.