IContainerBuilder Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
AddService(ServiceLifetime, Type, Type) |
Adds a service of |
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 |
AddService<TService>(IContainerBuilder, ServiceLifetime, Func<IServiceProvider,TService>) |
Adds a service of |
AddService<TService>(IContainerBuilder, ServiceLifetime) |
Adds a service of |
AddService<TService,TImplementation>(IContainerBuilder, ServiceLifetime) |
Adds a service of |
AddServicePrototype<TService>(IContainerBuilder, TService) |
Adds a service prototype of type |