ITypeRegistrar

Represents a type registrar.

Represents a type registrar.

Methods

public ITypeResolver Build()

Builds the type resolver representing the registrations specified in the current instance.

Returns:

A type resolver.

public void Register(Type service, Type implementation)

Registers the specified service.

Parameters:

service (Type)
The service.
implementation (Type)
The implementation.
public void RegisterInstance(Type service, object implementation)

Registers the specified instance.

Parameters:

service (Type)
The service.
implementation (object)
The implementation.
public void RegisterLazy(Type service, Func<object> factory)

Registers the specified instance lazily.

Parameters:

service (Type)
The service.
factory (Func<object>)
The factory that creates the implementation.