HttpServer Constructor (HttpConfiguration, )
Initializes a new instance of the HttpServer class with a specified configuration and dispatcher.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
configuration As HttpConfiguration, _
dispatcher As HttpMessageHandler _
)
'Usage
Dim configuration As HttpConfiguration
Dim dispatcher As HttpMessageHandler
Dim instance As New HttpServer(configuration, _
dispatcher)
public HttpServer(
HttpConfiguration configuration,
HttpMessageHandler dispatcher
)
public:
HttpServer(
HttpConfiguration^ configuration,
HttpMessageHandler^ dispatcher
)
new :
configuration:HttpConfiguration *
dispatcher:HttpMessageHandler -> HttpServer
public function HttpServer(
configuration : HttpConfiguration,
dispatcher : HttpMessageHandler
)
Parameters
- configuration
Type: System.Web.Http.HttpConfiguration
The HttpConfiguration used to configure this instance.
- dispatcher
Type: HttpMessageHandler
The HTTP dispatcher that will handle incoming requests.