PerRouteContainerBase.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.
Overloads
CreateODataRootContainer(Action<IContainerBuilder>) |
Create a root container not associated with a route. |
CreateODataRootContainer(String, Action<IContainerBuilder>) |
Create a root container for a given route name. |
CreateODataRootContainer(Action<IContainerBuilder>)
Create a root container not associated with a route.
public IServiceProvider CreateODataRootContainer (Action<Microsoft.OData.IContainerBuilder> configureAction);
member this.CreateODataRootContainer : Action<Microsoft.OData.IContainerBuilder> -> IServiceProvider
Public Function CreateODataRootContainer (configureAction As Action(Of IContainerBuilder)) As IServiceProvider
Parameters
- configureAction
- Action<IContainerBuilder>
The configuration actions to apply to the container.
Returns
An instance of IServiceProvider to manage services for a route.
Applies to
CreateODataRootContainer(String, Action<IContainerBuilder>)
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
override this.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.