HttpConfigurationExtensions Class

Definition

Provides extension methods for the System.Web.Http.HttpConfiguration class.

public static class HttpConfigurationExtensions
type HttpConfigurationExtensions = class
Public Module HttpConfigurationExtensions
Inheritance
HttpConfigurationExtensions

Methods

AddODataQueryFilter(HttpConfiguration)

Enables query support for actions with an IQueryable or IQueryable<T> return type. To avoid processing unexpected or malicious queries, use the validation settings on EnableQueryAttribute to validate incoming queries. For more information, visit http://go.microsoft.com/fwlink/?LinkId=279712.

AddODataQueryFilter(HttpConfiguration, IActionFilter)

Enables query support for actions with an IQueryable or IQueryable<T> return type. To avoid processing unexpected or malicious queries, use the validation settings on EnableQueryAttribute to validate incoming queries. For more information, visit http://go.microsoft.com/fwlink/?LinkId=279712.

Count(HttpConfiguration)

Sets the EnableCount to true of DefaultQuerySettings in the configuration.

Count(HttpConfiguration, QueryOptionSetting)

Sets the EnableCount of DefaultQuerySettings in the configuration, depends on QueryOptionSetting.

EnableContinueOnErrorHeader(HttpConfiguration)

Enable the continue-on-error header.

EnableDependencyInjection(HttpConfiguration)

Enables dependency injection support for HTTP routes.

EnableDependencyInjection(HttpConfiguration, Action<IContainerBuilder>)

Enables dependency injection support for HTTP routes.

Expand(HttpConfiguration)

Sets the EnableExpand to true of DefaultQuerySettings in the configuration.

Expand(HttpConfiguration, QueryOptionSetting)

Sets the EnableExpand of DefaultQuerySettings in the configuration, depends on QueryOptionSetting. Todo: change QueryOptionSetting to SelectExpandType.

Filter(HttpConfiguration)

Sets the EnableFilter to true of DefaultQuerySettings in the configuration.

Filter(HttpConfiguration, QueryOptionSetting)

Sets the EnableFilter of DefaultQuerySettings in the configuration, depends on QueryOptionSetting.

GetDefaultQuerySettings(HttpConfiguration)

Gets the DefaultQuerySettings from the configuration.

GetETagHandler(HttpConfiguration)

Gets the IETagHandler from the configuration.

GetTimeZoneInfo(HttpConfiguration)

Gets the TimeZoneInfo from the configuration.

MapODataServiceRoute(HttpConfiguration, String, String, Action<IContainerBuilder>)

Maps the specified OData route and the OData route attributes.

MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel)

Maps the specified OData route and the OData route attributes.

MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel, HttpMessageHandler)

Maps the specified OData route and the OData route attributes. When the defaultHandler is non-null, it will map it as the default handler for the route.

MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel, IODataPathHandler, IEnumerable<IODataRoutingConvention>)

Maps the specified OData route.

MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel, IODataPathHandler, IEnumerable<IODataRoutingConvention>, HttpMessageHandler)

Maps the specified OData route. When the defaultHandler is non-null, it will map it as the handler for the route.

MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel, IODataPathHandler, IEnumerable<IODataRoutingConvention>, ODataBatchHandler)

Maps the specified OData route. When the batchHandler is non-null, it will create a '$batch' endpoint to handle the batch requests.

MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel, ODataBatchHandler)

Maps the specified OData route and the OData route attributes. When the batchHandler is non-null, it will create a '$batch' endpoint to handle the batch requests.

MaxTop(HttpConfiguration, Nullable<Int32>)

Sets the MaxTop of DefaultQuerySettings in the configuration.

OrderBy(HttpConfiguration)

Sets the EnableOrderBy to true of DefaultQuerySettings in the configuration.

OrderBy(HttpConfiguration, QueryOptionSetting)

Sets the EnableOrderBy of DefaultQuerySettings in the configuration, depends on QueryOptionSetting.

Select(HttpConfiguration)

Sets the EnableSelect to true of DefaultQuerySettings in the configuration.

Select(HttpConfiguration, QueryOptionSetting)

Sets the SelectType of DefaultQuerySettings in the configuration, depends on QueryOptionSetting. Todo: change QueryOptionSetting to SelectExpandType.

SetCompatibilityOptions(HttpConfiguration, CompatibilityOptions)

Set the ODataCompatibilityOption.

SetDefaultQuerySettings(HttpConfiguration, DefaultQuerySettings)

Sets the DefaultQuerySettings in the configuration.

SetETagHandler(HttpConfiguration, IETagHandler)

Sets the IETagHandler on the configuration.

SetSerializeNullDynamicProperty(HttpConfiguration, Boolean)

Sets whether or not the null dynamic property to be serialized.

SetTimeZoneInfo(HttpConfiguration, TimeZoneInfo)

Sets the TimeZoneInfo on the configuration.

SetUrlKeyDelimiter(HttpConfiguration, ODataUrlKeyDelimiter)

Set the UrlKeyDelimiter in DefaultODataPathHandler.

SkipToken(HttpConfiguration)

Sets the EnableSkipToken to true of DefaultQuerySettings in the configuration.

SkipToken(HttpConfiguration, QueryOptionSetting)

Sets the EnableSkipToken of DefaultQuerySettings in the configuration, depends on QueryOptionSetting.

UseCustomContainerBuilder(HttpConfiguration, Func<IContainerBuilder>)

Specifies a custom container builder.

Applies to