C# Class Squared.Task.Http.HttpServer

Inheritance: IDisposable
Afficher le fichier Open project: sq/Fracture Class Usage Examples

Méthodes publiques

Свойство Type Description
EndPoints EndPointList
ErrorHandler BackgroundTaskErrorHandler
ListenerErrorHandler BackgroundTaskErrorHandler
RequestErrorHandler BackgroundTaskErrorHandler
Scheduler TaskScheduler
SocketClosed EventHandler
SocketOpened EventHandler
Trace Action

Méthodes publiques

Méthode Description
AcceptRequest ( ) : Future
Dispose ( ) : void
HttpServer ( TaskScheduler scheduler ) : System
StartListening ( ) : SignalFuture
StopListening ( ) : void

Private Methods

Méthode Description
KeepAliveTask ( ListenerContext context, IncomingConnection incomingConnection ) : IEnumerator
ListenerTask ( ListenerContext context ) : IEnumerator
OnError ( Exception exc ) : void
OnListenerError ( Exception exc ) : void
OnRequestCreated ( System.Net.Request request ) : void
OnRequestDisposed ( System.Net.Request request ) : void
OnRequestError ( Exception exc ) : void
RequestTask ( ListenerContext context, SocketDataAdapter adapter ) : IEnumerator
_RequestOnComplete ( IFuture future ) : void

Method Details

AcceptRequest() public méthode

public AcceptRequest ( ) : Future
Résultat Future

Dispose() public méthode

public Dispose ( ) : void
Résultat void

HttpServer() public méthode

public HttpServer ( TaskScheduler scheduler ) : System
scheduler TaskScheduler
Résultat System

StartListening() public méthode

public StartListening ( ) : SignalFuture
Résultat SignalFuture

StopListening() public méthode

public StopListening ( ) : void
Résultat void

Property Details

EndPoints public_oe property

public EndPointList EndPoints
Résultat EndPointList

ErrorHandler public_oe property

Handles any errors not processed by the listener/request error handlers.
public BackgroundTaskErrorHandler ErrorHandler
Résultat BackgroundTaskErrorHandler

ListenerErrorHandler public_oe property

Handles errors that occur during socket listening.
public BackgroundTaskErrorHandler ListenerErrorHandler
Résultat BackgroundTaskErrorHandler

RequestErrorHandler public_oe property

Handles errors that occur during request processing.
public BackgroundTaskErrorHandler RequestErrorHandler
Résultat BackgroundTaskErrorHandler

Scheduler public_oe property

public TaskScheduler Scheduler
Résultat TaskScheduler

SocketClosed public_oe property

public EventHandler SocketClosed
Résultat EventHandler

SocketOpened public_oe property

public EventHandler SocketOpened
Résultat EventHandler

Trace public_oe property

public Action Trace
Résultat Action