Partager via


HttpSelfHostServer Class

Implementation of an HttpServer which listens directly to HTTP.

Inheritance Hierarchy

System.Object
  HttpMessageHandler
    DelegatingHandler
      System.Web.Http.HttpServer
        System.Web.Http.SelfHost.HttpSelfHostServer

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

Syntax

'Declaration
Public NotInheritable Class HttpSelfHostServer _
    Inherits HttpServer
'Usage
Dim instance As HttpSelfHostServer
public sealed class HttpSelfHostServer : HttpServer
public ref class HttpSelfHostServer sealed : public HttpServer
[<SealedAttribute>]
type HttpSelfHostServer =  
    class
        inherit HttpServer
    end
public final class HttpSelfHostServer extends HttpServer

The HttpSelfHostServer type exposes the following members.

Constructors

  Name Description
Public method HttpSelfHostServer(HttpSelfHostConfiguration) Initializes a new instance of the HttpSelfHostServer class.
Public method HttpSelfHostServer(HttpSelfHostConfiguration, HttpMessageHandler) Initializes a new instance of the HttpSelfHostServer class.

Top

Properties

  Name Description
Public property Configuration Gets the HttpConfiguration used to configure this instance. (Inherited from HttpServer.)
Public property Dispatcher Gets the HTTP dispatcher that handles incoming requests. (Inherited from HttpServer.)
Public property InnerHandler (Inherited from DelegatingHandler.)

Top

Methods

  Name Description
Public method CloseAsync Closes the current HttpServer instance.
Public method Dispose (Inherited from HttpMessageHandler.)
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method OpenAsync Opens the current HttpServer instance.
Protected method SendAsync (Inherited from DelegatingHandler.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.SelfHost Namespace