Skip to content

IServiceTypeSelector Interface

Definition

The Compiled Service Type Selector

C#
public interface IServiceTypeSelector

Methods

AsSelf()

Registers each matching concrete type as itself.

C#
IServiceLifetimeSelector AsSelf()

Returns

IServiceLifetimeSelector

As<T>()

Registers each matching concrete type as T.

C#
IServiceLifetimeSelector As<T>()

Returns

IServiceLifetimeSelector

As(Type)

Registers each matching concrete type as type

C#
IServiceLifetimeSelector As(Type type)

Parameters

type Type

Returns

IServiceLifetimeSelector

AsImplementedInterfaces()

Registers each matching concrete type as all of its implemented interfaces.

C#
IServiceLifetimeSelector AsImplementedInterfaces()

Returns

IServiceLifetimeSelector

AsImplementedInterfaces(Action<ITypeFilter>)

Registers each matching concrete type as all of its implemented interfaces.

C#
IServiceLifetimeSelector AsImplementedInterfaces(Action<ITypeFilter> action)

Parameters

action Action<ITypeFilter>

Returns

IServiceLifetimeSelector

AsSelfWithInterfaces()

Registers each matching concrete type as all of its implemented interfaces, by returning an instance of the main type

C#
IServiceLifetimeSelector AsSelfWithInterfaces()

Returns

IServiceLifetimeSelector

AsSelfWithInterfaces(Action<ITypeFilter>)

Registers each matching concrete type as all of its implemented interfaces, by returning an instance of the main type

C#
IServiceLifetimeSelector AsSelfWithInterfaces(Action<ITypeFilter> action)

Parameters

action Action<ITypeFilter>

Returns

IServiceLifetimeSelector

AsMatchingInterface()

Registers the type with the first found matching interface name. (e.g. ClassName is matched to IClassName)

C#
IServiceLifetimeSelector AsMatchingInterface()

Returns

IServiceLifetimeSelector