C# Class ALE.Http.Server

A simple asynchronous web server for ALE.
Inheritance: ServerBase
Afficher le fichier Open project: blesh/ALE

Protected Properties

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

Méthodes publiques

Méthode Description
Create ( ) : Server
Listen ( ) : Server

Starts the server listening an any number of URI prefixes.

Stop ( bool stopEventLoop = false ) : void

Stop the server.

Use ( Action>.Action processor ) : Server
Use ( IViewProcessor viewProcessor ) : Server

Private Methods

Méthode Description
GetContextCallback ( IAsyncResult result ) : void

Async callback for GetContextCallBack in Listen method above.

Server ( ) : System

Creates a new instance of a server.

Method Details

Create() public static méthode

public static Create ( ) : Server
Résultat Server

Listen() public méthode

Starts the server listening an any number of URI prefixes.
public Listen ( ) : Server
Résultat Server

Stop() public méthode

Stop the server.
public Stop ( bool stopEventLoop = false ) : void
stopEventLoop bool
Résultat void

Use() public méthode

public Use ( Action>.Action processor ) : Server
processor Action>.Action
Résultat Server

Use() public méthode

public Use ( IViewProcessor viewProcessor ) : Server
viewProcessor IViewProcessor
Résultat Server

Property Details

Listener protected_oe property

The HTTP listener that handles receiving requests.
protected HttpListener,System.Net Listener
Résultat System.Net.HttpListener