C# Class Squared.Task.Http.HttpServer

Inheritance: IDisposable
Show 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 property

public EndPointList EndPoints
return EndPointList

ErrorHandler public property

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

ListenerErrorHandler public property

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

RequestErrorHandler public property

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

Scheduler public property

public TaskScheduler Scheduler
return TaskScheduler

SocketClosed public property

public EventHandler SocketClosed
return EventHandler

SocketOpened public property

public EventHandler SocketOpened
return EventHandler

Trace public property

public Action Trace
return Action