Partager via


HttpServer Constructor ()

Initializes a new instance of the HttpServer class with a specified dispatcher.

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

Syntax

'Declaration
Public Sub New ( _
    dispatcher As HttpMessageHandler _
)
'Usage
Dim dispatcher As HttpMessageHandler 

Dim instance As New HttpServer(dispatcher)
public HttpServer(
    HttpMessageHandler dispatcher
)
public:
HttpServer(
    HttpMessageHandler^ dispatcher
)
new : 
        dispatcher:HttpMessageHandler -> HttpServer
public function HttpServer(
    dispatcher : HttpMessageHandler
)

Parameters

  • dispatcher
    Type: HttpMessageHandler

    The HTTP dispatcher that will handle incoming requests.

See Also

Reference

HttpServer Class

HttpServer Overload

System.Web.Http Namespace