C# 클래스 Enyim.Membase.MessageStreamListener

Listens on a streamingUri and processes the messages
상속: IDisposable
파일 보기 프로젝트 열기: xianrendzw/LightFramework.Net 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
CreateClient ( ) : WebClientWithTimeout
Dispose ( ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

CreateClient() 보호된 메소드

protected CreateClient ( ) : WebClientWithTimeout
리턴 WebClientWithTimeout

Dispose() 보호된 메소드

protected Dispose ( ) : void
리턴 void

MessageStreamListener() 공개 메소드

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
리턴 System

Start() 공개 메소드

Starts processing the streaming URI
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops processing
public Stop ( ) : void
리턴 void

Subscribe() 공개 메소드

public Subscribe ( Action callback ) : void
callback Action
리턴 void

Unsubscribe() 공개 메소드

public Unsubscribe ( Action callback ) : void
callback Action
리턴 void