HttpSelfHostServer Constructor (HttpSelfHostConfiguration, )
Initializes a new instance of the HttpSelfHostServer class.
Namespace: System.Web.Http.SelfHost
Assembly: System.Web.Http.SelfHost (in System.Web.Http.SelfHost.dll)
Syntax
'Declaration
Public Sub New ( _
configuration As HttpSelfHostConfiguration, _
dispatcher As HttpMessageHandler _
)
'Usage
Dim configuration As HttpSelfHostConfiguration
Dim dispatcher As HttpMessageHandler
Dim instance As New HttpSelfHostServer(configuration, _
dispatcher)
public HttpSelfHostServer(
HttpSelfHostConfiguration configuration,
HttpMessageHandler dispatcher
)
public:
HttpSelfHostServer(
HttpSelfHostConfiguration^ configuration,
HttpMessageHandler^ dispatcher
)
new :
configuration:HttpSelfHostConfiguration *
dispatcher:HttpMessageHandler -> HttpSelfHostServer
public function HttpSelfHostServer(
configuration : HttpSelfHostConfiguration,
dispatcher : HttpMessageHandler
)
Parameters
- configuration
Type: System.Web.Http.SelfHost.HttpSelfHostConfiguration
The configuration.
- dispatcher
Type: HttpMessageHandler
The dispatcher.