C# Class Enyim.Membase.MessageStreamListener

Listens on a streamingUri and processes the messages
Inheritance: IDisposable
Afficher le fichier Open project: xianrendzw/LightFramework.Net Class Usage Examples

Méthodes publiques

Méthode Description
MessageStreamListener ( Uri urls, Func converter ) : System

Start ( ) : void

Starts processing the streaming URI

Stop ( ) : void

Stops processing

Subscribe ( Action callback ) : void
Unsubscribe ( Action callback ) : void

Méthodes protégées

Méthode Description
CreateClient ( ) : WebClientWithTimeout
Dispose ( ) : void

Private Methods

Méthode Description
CleanupRequests ( ) : void
CurrentDomain_DomainUnload ( object sender, EventArgs e ) : void
GetNextPoolUri ( ) : Uri>.KeyValuePair
IDisposable ( ) : void
ProcessPool ( ) : void
ReadMessages ( Uri uri ) : void
SleepUntil ( int milliseconds ) : bool

Sleeps until the time elapses. Returns false if the sleep was aborted.

Trigger ( string message ) : void
Worker ( object state ) : void

Method Details

CreateClient() protected méthode

protected CreateClient ( ) : WebClientWithTimeout
Résultat WebClientWithTimeout

Dispose() protected méthode

protected Dispose ( ) : void
Résultat void

MessageStreamListener() public méthode

public MessageStreamListener ( Uri urls, Func converter ) : System
urls System.Uri
converter Func you use this to redirect the original url into somewhere else. called only once by urls before the MessageStreamListener starts processing it
Résultat System

Start() public méthode

Starts processing the streaming URI
public Start ( ) : void
Résultat void

Stop() public méthode

Stops processing
public Stop ( ) : void
Résultat void

Subscribe() public méthode

public Subscribe ( Action callback ) : void
callback Action
Résultat void

Unsubscribe() public méthode

public Unsubscribe ( Action callback ) : void
callback Action
Résultat void