C# Class EvHttpSharp.EventHttpListener

Inheritance: IEventHttpListener
Afficher le fichier Open project: kekekeks/evhttp-sharp Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
EventHttpListener ( RequestCallback cb ) : System
Shutdown ( ) : Task
Start ( IntPtr sharedSocket ) : void
Start ( string host, ushort port ) : void
StopListeningAsync ( ) : Task
WaitForPendingConnections ( ) : Task

Private Methods

Méthode Description
CheckAlreadyListening ( ) : void
DecreaseRequestCounter ( ) : void
DoDispose ( ) : void
IncreaseRequestCounter ( ) : void
MainCycle ( TaskCompletionSource tcs ) : void
RequestHandler ( IntPtr request, IntPtr arg ) : void
Start ( EvHttpBoundSocket boundSocket ) : void
Sync ( System.Action cb ) : void
SyncCallback ( object sender, EventArgs eventArgs ) : void
SyncTask ( System.Action cb ) : Task

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EventHttpListener() public méthode

public EventHttpListener ( RequestCallback cb ) : System
cb RequestCallback
Résultat System

Shutdown() public méthode

public Shutdown ( ) : Task
Résultat Task

Start() public méthode

public Start ( IntPtr sharedSocket ) : void
sharedSocket System.IntPtr
Résultat void

Start() public méthode

public Start ( string host, ushort port ) : void
host string
port ushort
Résultat void

StopListeningAsync() public méthode

public StopListeningAsync ( ) : Task
Résultat Task

WaitForPendingConnections() public méthode

public WaitForPendingConnections ( ) : Task
Résultat Task