Share via


IContainerBuilder Interface

Definition

An interface that decouples ODataLib from any implementation of dependency injection container.

public interface IContainerBuilder
type IContainerBuilder = interface
Public Interface IContainerBuilder
Derived

Methods

AddService(ServiceLifetime, Type, Func<IServiceProvider,Object>)

Adds a service of serviceType with an implementationFactory.

AddService(ServiceLifetime, Type, Type)

Adds a service of serviceType with an implementationType.

BuildContainer()

Builds a container which implements IServiceProvider and contains all the services registered.

Extension Methods

AddDefaultODataServices(IContainerBuilder, ODataVersion)

Adds the default OData services to the IContainerBuilder.

AddDefaultODataServices(IContainerBuilder)

Adds the default OData services to the IContainerBuilder.

AddService(IContainerBuilder, ServiceLifetime, Type)

Adds a service of serviceType.

AddService<TService>(IContainerBuilder, ServiceLifetime, Func<IServiceProvider,TService>)

Adds a service of TService with an implementationFactory.

AddService<TService>(IContainerBuilder, ServiceLifetime)

Adds a service of TService.

AddService<TService,TImplementation>(IContainerBuilder, ServiceLifetime)

Adds a service of TService with an TImplementation.

AddServicePrototype<TService>(IContainerBuilder, TService)

Adds a service prototype of type TService.

Applies to