Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpSelfHostConfiguration Class

Contains the configuration class for HTTP Services.

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

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

public class HttpSelfHostConfiguration : HttpConfiguration

The HttpSelfHostConfiguration type exposes the following members.

  NameDescription
Public methodHttpSelfHostConfiguration(String)Initializes a new instance of the HttpSelfHostConfiguration class.
Public methodHttpSelfHostConfiguration(Uri)Initializes a new instance of the HttpSelfHostConfiguration class.
Top

  NameDescription
Public propertyBaseAddressGets the base HTTP address.
Public propertyClientCredentialTypeGets or sets the client credential type that the server expects.
Public propertyDependencyResolverGets or sets the dependency resolver associated with thisinstance. (Inherited from HttpConfiguration.)
Public propertyFiltersGets the list of filters that apply to all requests served using this HttpConfiguration instance. (Inherited from HttpConfiguration.)
Public propertyFormattersGets the media-type formatters for this instance. (Inherited from HttpConfiguration.)
Public propertyHostNameComparisonModeGets a value that specifies how the host name should be used in URI comparisons when dispatching an incoming message.
Public propertyIncludeErrorDetailPolicyGets or sets a value indicating whether error details should be included in error messages. (Inherited from HttpConfiguration.)
Public propertyInitializer 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 propertyMaxBufferSizeGets or sets the maximum size of the buffer.
Public propertyMaxConcurrentRequestsGets 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 propertyMaxReceivedMessageSizeGets or sets the maximum size of the received message.
Public propertyMessageHandlersGets 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 propertyParameterBindingRulesThe collection of rules for how parameters should be bound. (Inherited from HttpConfiguration.)
Public propertyPropertiesGets the properties associated with this instance. (Inherited from HttpConfiguration.)
Public propertyReceiveTimeoutGets or sets the receive timeout.
Public propertyRoutesGets the HttpRouteCollection associated with this HttpConfiguration instance. (Inherited from HttpConfiguration.)
Public propertySendTimeoutGets or sets the send timeout.
Public propertyServicesGets the container of default services associated with this instance. (Inherited from HttpConfiguration.)
Public propertyTransferModeGets or sets the transfer mode.
Public propertyUserNamePasswordValidatorGets or sets the UserNamePasswordValidator that is used to validate the username and password sent over HTTP or HTTPS.
Public propertyVirtualPathRootGets the root virtual path. (Inherited from HttpConfiguration.)
Public propertyX509CertificateValidatorGets or sets the X509CertificateValidatorinstance that will be used to validate the client certificate sent over HTTPS.
Top

  NameDescription
Public methodDispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from HttpConfiguration.)
Protected methodDispose(Boolean)Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources. (Inherited from HttpConfiguration.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnConfigureBindingCalled to apply the configuration on the endpoint level.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public Extension MethodBindParameter Register that the given parameter type on an Action is to be bound using the model binder. (Defined by HttpConfigurationExtensions.)
Top

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