Partager via


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

  • dispatcher
    Type: HttpMessageHandler
    The dispatcher.

See Also

Reference

HttpSelfHostServer Class

HttpSelfHostServer Overload

System.Web.Http.SelfHost Namespace