Sdílet prostřednictvím


IPerRouteContainer.CreateODataRootContainer Metoda

Definice

Vytvořte kořenový kontejner pro daný název trasy.

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

Parametry

routeName
String

Název trasy.

configureAction
Action<IContainerBuilder>

Akce konfigurace, které se mají použít u kontejneru.

Návraty

Instance IServiceProvider pro správu služeb pro trasu.

Platí pro