IServiceTypeSelector Interface
Definition
The Compiled Service Type Selector
public interface IServiceTypeSelectorMethods
AsSelf()
Registers each matching concrete type as itself.
IServiceLifetimeSelector AsSelf()Returns
As<T>()
Registers each matching concrete type as T.
IServiceLifetimeSelector As<T>()Returns
As(Type)
Registers each matching concrete type as type
IServiceLifetimeSelector As(Type type)Parameters
type Type
Returns
AsImplementedInterfaces()
Registers each matching concrete type as all of its implemented interfaces.
IServiceLifetimeSelector AsImplementedInterfaces()Returns
AsImplementedInterfaces(Action<ITypeFilter>)
Registers each matching concrete type as all of its implemented interfaces.
IServiceLifetimeSelector AsImplementedInterfaces(Action<ITypeFilter> action)Parameters
action Action<ITypeFilter>
Returns
AsSelfWithInterfaces()
Registers each matching concrete type as all of its implemented interfaces, by returning an instance of the main type
IServiceLifetimeSelector AsSelfWithInterfaces()Returns
AsSelfWithInterfaces(Action<ITypeFilter>)
Registers each matching concrete type as all of its implemented interfaces, by returning an instance of the main type
IServiceLifetimeSelector AsSelfWithInterfaces(Action<ITypeFilter> action)Parameters
action Action<ITypeFilter>
Returns
AsMatchingInterface()
Registers the type with the first found matching interface name. (e.g. ClassName is matched to IClassName)
IServiceLifetimeSelector AsMatchingInterface()
