HttpSelfHostConfiguration Class

Contains the configuration class for HTTP Services.

Inheritance Hierarchy


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


Public Class HttpSelfHostConfiguration _
    Inherits HttpConfiguration
Dim instance As HttpSelfHostConfiguration
public class HttpSelfHostConfiguration : HttpConfiguration
public ref class HttpSelfHostConfiguration : public HttpConfiguration
type HttpSelfHostConfiguration =  
        inherit HttpConfiguration
public class HttpSelfHostConfiguration extends HttpConfiguration

The HttpSelfHostConfiguration type exposes the following members.


  Name Description
Public method HttpSelfHostConfiguration(String) Initializes a new instance of the HttpSelfHostConfiguration class.
Public method HttpSelfHostConfiguration(Uri) Initializes a new instance of the HttpSelfHostConfiguration class.



  Name Description
Public property BaseAddress Gets the base HTTP address.
Public property ClientCredentialType Gets or sets the client credential type that the server expects.
Public property DependencyResolver Gets or sets the dependency resolver associated with thisinstance. (Inherited from HttpConfiguration.)
Public property Filters Gets the list of filters that apply to all requests served using this HttpConfiguration instance. (Inherited from HttpConfiguration.)
Public property Formatters Gets the media-type formatters for this instance. (Inherited from HttpConfiguration.)
Public property HostNameComparisonMode Gets a value that specifies how the host name should be used in URI comparisons when dispatching an incoming message.
Public property IncludeErrorDetailPolicy Gets or sets a value indicating whether error details should be included in error messages. (Inherited from HttpConfiguration.)
Public property 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.)
Public property MaxBufferSize Gets or sets the maximum size of the buffer.
Public property 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.
Public property MaxReceivedMessageSize Gets or sets the maximum size of the received message.
Public property 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.)
Public property ParameterBindingRules The collection of rules for how parameters should be bound. (Inherited from HttpConfiguration.)
Public property Properties Gets the properties associated with this instance. (Inherited from HttpConfiguration.)
Public property ReceiveTimeout Gets or sets the receive timeout.
Public property Routes Gets the HttpRouteCollection associated with this HttpConfiguration instance. (Inherited from HttpConfiguration.)
Public property SendTimeout Gets or sets the send timeout.
Public property Services Gets the container of default services associated with this instance. (Inherited from HttpConfiguration.)
Public property TransferMode Gets or sets the transfer mode.
Public property UserNamePasswordValidator Gets or sets the UserNamePasswordValidator that is used to validate the username and password sent over HTTP or HTTPS.
Public property VirtualPathRoot Gets the root virtual path. (Inherited from HttpConfiguration.)
Public property X509CertificateValidator Gets or sets the X509CertificateValidatorinstance that will be used to validate the client certificate sent over HTTPS.



  Name Description
Public method Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from HttpConfiguration.)
Protected method Dispose(Boolean) Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources. (Inherited from HttpConfiguration.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnConfigureBinding Called to apply the configuration on the endpoint level.
Public method ToString (Inherited from Object.)


Extension Methods

  Name Description
Public Extension Method BindParameter Register that the given parameter type on an Action is to be bound using the model binder. (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