IPerRouteContainer.CreateODataRootContainer Method
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.
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.