IPerRouteContainer.CreateODataRootContainer Method

Definition

Create a root container for a given route name.

public IServiceProvider CreateODataRootContainer (string routeName, Action<Microsoft.OData.IContainerBuilder> configureAction);
abstract member CreateODataRootContainer : string * Action<Microsoft.OData.IContainerBuilder> -> IServiceProvider
Public Function CreateODataRootContainer (routeName As String, configureAction As Action(Of IContainerBuilder)) As IServiceProvider

Parameters

routeName
String

The route name.

configureAction
Action<IContainerBuilder>

The configuration actions to apply to the container.

Returns

An instance of IServiceProvider to manage services for a route.

Applies to