C# Class ServiceStack.WebHost.Endpoints.Support.HttpListenerBase

Wrapper class for the HTTPListener to allow easier access to the server, for start and stop management and event routing of the actual inbound requests.
Inheritance: IDisposable
Afficher le fichier Open project: firstsee/ServiceStack Class Usage Examples

Protected Properties

Свойство Type Description
IsStarted bool
Listener System.Net.HttpListener

Méthodes publiques

Méthode Description
Configure ( Funq.Container container ) : void
Dispose ( ) : void
Init ( ) : void
Start ( string urlBase ) : void

Starts the Web Service

Stop ( ) : void

Shut down the Web Service

Méthodes protégées

Méthode Description
HttpListenerBase ( ) : System
HttpListenerBase ( string serviceName ) : System
ProcessRequest ( HttpListenerContext context ) : void

Overridable method that can be used to implement a custom hnandler

SetConfig ( EndpointHostConfig config ) : void
WebRequestCallback ( IAsyncResult result ) : void

Private Methods

Méthode Description
WriteException ( HttpListenerContext context, Exception ex ) : void

Method Details

Configure() public abstract méthode

public abstract Configure ( Funq.Container container ) : void
container Funq.Container
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

HttpListenerBase() protected méthode

protected HttpListenerBase ( ) : System
Résultat System

HttpListenerBase() protected méthode

protected HttpListenerBase ( string serviceName ) : System
serviceName string
Résultat System

Init() public méthode

public Init ( ) : void
Résultat void

ProcessRequest() protected abstract méthode

Overridable method that can be used to implement a custom hnandler
protected abstract ProcessRequest ( HttpListenerContext context ) : void
context System.Net.HttpListenerContext
Résultat void

SetConfig() protected méthode

protected SetConfig ( EndpointHostConfig config ) : void
config EndpointHostConfig
Résultat void

Start() public méthode

Starts the Web Service
public Start ( string urlBase ) : void
urlBase string /// A Uri that acts as the base that the server is listening on. /// Format should be: http://127.0.0.1:8080/ or http://127.0.0.1:8080/somevirtual/ /// Note: the trailing backslash is required! For more info see the /// HttpListener.Prefixes property on MSDN. ///
Résultat void

Stop() public méthode

Shut down the Web Service
public Stop ( ) : void
Résultat void

WebRequestCallback() protected méthode

protected WebRequestCallback ( IAsyncResult result ) : void
result IAsyncResult
Résultat void

Property Details

IsStarted protected_oe property

protected bool IsStarted
Résultat bool

Listener protected_oe property

protected HttpListener,System.Net Listener
Résultat System.Net.HttpListener