Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 propertyParameterBindingRulesGets the 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 methodEnsureInitializedInvoke the Intializer hook. It is considered immutable from this point forward. It's safe to call this multiple times. (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 (Defined by HttpConfigurationExtensions.)
Public Extension MethodEnableCors()Overloaded. Enables the support for CORS. (Defined by CorsHttpConfigurationExtensions.)
Public Extension MethodEnableCors(ICorsPolicyProvider)Overloaded. Enables the support for CORS. (Defined by CorsHttpConfigurationExtensions.)
Public Extension MethodEnableSystemDiagnosticsTracingCreates and registers an ITraceWriter implementation to use for this application. (Defined by HttpConfigurationTracingExtensions.)
Public Extension MethodGetCorsEngineGets the ICorsEngine from the HttpConfiguration. (Defined by CorsHttpConfigurationExtensions.)
Public Extension MethodGetCorsPolicyProviderFactoryGets the ICorsPolicyProviderFactory from the HttpConfiguration. (Defined by CorsHttpConfigurationExtensions.)
Public Extension MethodMapHttpAttributeRoutes()Overloaded. (Defined by HttpConfigurationExtensions.)
Public Extension MethodMapHttpAttributeRoutes(IInlineConstraintResolver)Overloaded. Maps the attribute-defined routes for the application. (Defined by HttpConfigurationExtensions.)
Public Extension MethodSetCorsEngineSets the ICorsEngine on the HttpConfiguration. (Defined by CorsHttpConfigurationExtensions.)
Public Extension MethodSetCorsPolicyProviderFactorySets the ICorsPolicyProviderFactory on the HttpConfiguration. (Defined by CorsHttpConfigurationExtensions.)
Public Extension MethodSuppressDefaultHostAuthenticationEnables suppression of the host's default authentication. (Defined by OwinHttpConfigurationExtensions.)
Public Extension MethodSuppressHostPrincipal (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:
© 2014 Microsoft. All rights reserved.