C# Class Squared.Task.Http.HttpServer

Inheritance: IDisposable
Mostra file Open project: sq/Fracture Class Usage Examples

Public Properties

Property Type Description
EndPoints EndPointList
ErrorHandler BackgroundTaskErrorHandler
ListenerErrorHandler BackgroundTaskErrorHandler
RequestErrorHandler BackgroundTaskErrorHandler
Scheduler TaskScheduler
SocketClosed EventHandler
SocketOpened EventHandler
Trace Action

Public Methods

Method Description
AcceptRequest ( ) : Future
Dispose ( ) : void
HttpServer ( TaskScheduler scheduler ) : System
StartListening ( ) : SignalFuture
StopListening ( ) : void

Private Methods

Method 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 method

public AcceptRequest ( ) : Future
return Future

Dispose() public method

public Dispose ( ) : void
return void

HttpServer() public method

public HttpServer ( TaskScheduler scheduler ) : System
scheduler TaskScheduler
return System

StartListening() public method

public StartListening ( ) : SignalFuture
return SignalFuture

StopListening() public method

public StopListening ( ) : void
return void

Property Details

EndPoints public_oe property

public EndPointList EndPoints
return EndPointList

ErrorHandler public_oe property

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

ListenerErrorHandler public_oe property

Handles errors that occur during socket listening.
public BackgroundTaskErrorHandler ListenerErrorHandler
return BackgroundTaskErrorHandler

RequestErrorHandler public_oe property

Handles errors that occur during request processing.
public BackgroundTaskErrorHandler RequestErrorHandler
return BackgroundTaskErrorHandler

Scheduler public_oe property

public TaskScheduler Scheduler
return TaskScheduler

SocketClosed public_oe property

public EventHandler SocketClosed
return EventHandler

SocketOpened public_oe property

public EventHandler SocketOpened
return EventHandler

Trace public_oe property

public Action Trace
return Action