Share via


PerRouteContainer Class

Definition

A class for managing per-route service containers.

public class PerRouteContainer : Microsoft.AspNet.OData.PerRouteContainerBase
type PerRouteContainer = class
    inherit PerRouteContainerBase
Public Class PerRouteContainer
Inherits PerRouteContainerBase
Inheritance
PerRouteContainer

Constructors

PerRouteContainer()

Initializes a new instance of the ODataSerializerContext class.

PerRouteContainer(HttpConfiguration)

Initializes a new instance of the ODataSerializerContext class.

Properties

BuilderFactory

Gets or sets a function to build an IContainerBuilder

(Inherited from PerRouteContainerBase)

Methods

AddRoute(String, String)

Add a routing mapping

(Inherited from PerRouteContainerBase)
CreateContainerBuilderWithCoreServices()

Create a container builder with the default OData services.

(Inherited from PerRouteContainerBase)
CreateODataRootContainer(Action<IContainerBuilder>)

Create a root container not associated with a route.

(Inherited from PerRouteContainerBase)
CreateODataRootContainer(String, Action<IContainerBuilder>)

Create a root container for a given route name.

(Inherited from PerRouteContainerBase)
GetContainer(String)

Gets the root container for a given route name.

GetODataRootContainer(String)

Get the root container for a given route name.

(Inherited from PerRouteContainerBase)
GetRoutePrefix(String)

Get the route prefix

(Inherited from PerRouteContainerBase)
HasODataRootContainer(String)

Check if the root container for a given route name exists.

(Inherited from PerRouteContainerBase)
SetContainer(String, IServiceProvider)

Sets the root container for a given route name.

Applies to