HttpSelfHostConfiguration Class

 

Contains the configuration class for HTTP Services.

Namespace:   System.Web.Http.SelfHost
Assembly:  System.Web.Http.SelfHost (in System.Web.Http.SelfHost.dll)

Inheritance Hierarchy

System.Object
  System.Web.Http.HttpConfiguration
    System.Web.Http.SelfHost.HttpSelfHostConfiguration

Syntax

public class HttpSelfHostConfiguration : HttpConfiguration
public ref class HttpSelfHostConfiguration : HttpConfiguration
type HttpSelfHostConfiguration = 
    class
        inherit HttpConfiguration
    end
Public Class HttpSelfHostConfiguration
    Inherits HttpConfiguration

Constructors

Name Description
System_CAPS_pubmethod HttpSelfHostConfiguration(String)

Initializes a new instance of the HttpSelfHostConfiguration class.

System_CAPS_pubmethod HttpSelfHostConfiguration(Uri)

Initializes a new instance of the HttpSelfHostConfiguration class.

Properties

Name Description
System_CAPS_pubproperty BaseAddress

Gets the base HTTP address.

System_CAPS_pubproperty ClientCredentialType

Gets or sets the client credential type that the server expects.

System_CAPS_pubproperty DependencyResolver

Gets or sets the dependency resolver associated with thisinstance.(Inherited from HttpConfiguration.)

System_CAPS_pubproperty Filters

Gets the list of filters that apply to all requests served using this HttpConfiguration instance.(Inherited from HttpConfiguration.)

System_CAPS_pubproperty Formatters

Gets the media-type formatters for this instance.(Inherited from HttpConfiguration.)

System_CAPS_pubproperty HostNameComparisonMode

Gets a value that specifies how the host name should be used in URI comparisons when dispatching an incoming message.

System_CAPS_pubproperty IncludeErrorDetailPolicy

Gets or sets a value indicating whether error details should be included in error messages.(Inherited from HttpConfiguration.)

System_CAPS_pubproperty Initializer

Gets or sets the action that will perform final initialization of the HttpConfiguration instance before it is used to process requests. (Inherited from HttpConfiguration.)

System_CAPS_pubproperty MaxBufferSize

Gets or sets the maximum size of the buffer.

System_CAPS_pubproperty MaxConcurrentRequests

Gets or sets the upper limit of concurrent HttpRequestMessage instances that can be processed at any given time. The default is 100 times the number of CPU cores.

System_CAPS_pubproperty MaxReceivedMessageSize

Gets or sets the maximum size of the received message.

System_CAPS_pubproperty MessageHandlers

Gets an ordered list of DelegatingHandler instances to be invoked as an HttpRequestMessage travels up the stack and an HttpResponseMessage travels down in stack in return. (Inherited from HttpConfiguration.)

System_CAPS_pubproperty ParameterBindingRules

Gets the collection of rules for how parameters should be bound.(Inherited from HttpConfiguration.)

System_CAPS_pubproperty Properties

Gets the properties associated with this instance.(Inherited from HttpConfiguration.)

System_CAPS_pubproperty ReceiveTimeout

Gets or sets the receive timeout.

System_CAPS_pubproperty Routes

Gets the HttpRouteCollection associated with this HttpConfiguration instance.(Inherited from HttpConfiguration.)

System_CAPS_pubproperty SendTimeout

Gets or sets the send timeout.

System_CAPS_pubproperty Services

Gets the container of default services associated with this instance.(Inherited from HttpConfiguration.)

System_CAPS_pubproperty TransferMode

Gets or sets the transfer mode.

System_CAPS_pubproperty UserNamePasswordValidator

Gets or sets the UserNamePasswordValidator that is used to validate the username and password sent over HTTP or HTTPS.

System_CAPS_pubproperty VirtualPathRoot

Gets the root virtual path.(Inherited from HttpConfiguration.)

System_CAPS_pubproperty X509CertificateValidator

Gets or sets the X509CertificateValidatorinstance that will be used to validate the client certificate sent over HTTPS.

Methods

Name Description
System_CAPS_pubmethod Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from HttpConfiguration.)

System_CAPS_protmethod Dispose(Boolean)

Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources.(Inherited from HttpConfiguration.)

System_CAPS_pubmethod EnsureInitialized()

Invoke the Intializer hook. It is considered immutable from this point forward. It's safe to call this multiple times.(Inherited from HttpConfiguration.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod OnConfigureBinding(HttpBinding)

Called to apply the configuration on the endpoint level.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Extension Methods

Name Description
System_CAPS_pubmethod BindParameter(Type, IModelBinder)

(Defined by HttpConfigurationExtensions.)

System_CAPS_pubmethod EnableCors()

Overloaded. Enables the support for CORS.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethod EnableCors(ICorsPolicyProvider)

Overloaded. Enables the support for CORS.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethod GetCorsEngine()

Gets the ICorsEngine from the HttpConfiguration.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethod GetCorsPolicyProviderFactory()

Gets the ICorsPolicyProviderFactory from the HttpConfiguration.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethod MapHttpAttributeRoutes()

Overloaded. (Defined by HttpConfigurationExtensions.)

System_CAPS_pubmethod MapHttpAttributeRoutes(IDirectRouteProvider)

Overloaded. Maps the attribute-defined routes for the application.(Defined by HttpConfigurationExtensions.)

System_CAPS_pubmethod MapHttpAttributeRoutes(IInlineConstraintResolver)

Overloaded. Maps the attribute-defined routes for the application.(Defined by HttpConfigurationExtensions.)

System_CAPS_pubmethod MapHttpAttributeRoutes(IInlineConstraintResolver, IDirectRouteProvider)

Overloaded. Maps the attribute-defined routes for the application.(Defined by HttpConfigurationExtensions.)

System_CAPS_pubmethod SetCorsEngine(ICorsEngine)

Sets the ICorsEngine on the HttpConfiguration.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethod SetCorsPolicyProviderFactory(ICorsPolicyProviderFactory)

Sets the ICorsPolicyProviderFactory on the HttpConfiguration.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethod SuppressHostPrincipal()

(Defined by HttpConfigurationExtensions.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Http.SelfHost Namespace

Return to top