Share via


DefaultContainerBuilder Class

Definition

The default container builder implementation based on the Microsoft dependency injection framework.

public class DefaultContainerBuilder : Microsoft.OData.IContainerBuilder
type DefaultContainerBuilder = class
    interface IContainerBuilder
Public Class DefaultContainerBuilder
Implements IContainerBuilder
Inheritance
DefaultContainerBuilder
Implements

Constructors

DefaultContainerBuilder()

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.

Applies to