C# 클래스 Microsoft.AspNet.SignalR.Client.Transports.LongPollingTransport

상속: Microsoft.AspNet.SignalR.Client.Transports.HttpBasedTransport
파일 보기 프로젝트 열기: SignalR/SignalR 1 사용 예제들

공개 메소드들

메소드 설명
LongPollingTransport ( ) : System
LongPollingTransport ( IHttpClient httpClient ) : System
LostConnection ( IConnection connection ) : void

Aborts the currently active polling request thereby forcing a reconnect.

보호된 메소드들

메소드 설명
OnStart ( IConnection connection, string connectionData, CancellationToken disconnectToken ) : void
OnStartFailed ( ) : void

비공개 메소드들

메소드 설명
FireReconnected ( IConnection connection ) : void
IsKeepAlive ( ArraySegment readBuffer ) : bool
IsReconnecting ( IConnection connection ) : bool
OnAfterPoll ( Exception exception ) : System.Threading.Task
OnChunk ( IConnection connection, ArraySegment readBuffer ) : bool
OnError ( IConnection connection, Exception exception ) : void
OnMessage ( IConnection connection, string message ) : void
Poll ( IConnection connection, string connectionData ) : void
ResolveUrl ( IConnection connection, string connectionData ) : string
StartPolling ( IConnection connection, string connectionData ) : void

Starts the polling loop.

StopPolling ( ) : void

Fully stops the polling loop.

TryDelayedReconnect ( IConnection connection, ThreadSafeInvoker reconnectInvoker ) : void
TryReconnect ( IConnection connection, ThreadSafeInvoker reconnectInvoker ) : void

메소드 상세

LongPollingTransport() 공개 메소드

public LongPollingTransport ( ) : System
리턴 System

LongPollingTransport() 공개 메소드

public LongPollingTransport ( IHttpClient httpClient ) : System
httpClient IHttpClient
리턴 System

LostConnection() 공개 메소드

Aborts the currently active polling request thereby forcing a reconnect.
public LostConnection ( IConnection connection ) : void
connection IConnection
리턴 void

OnStart() 보호된 메소드

protected OnStart ( IConnection connection, string connectionData, CancellationToken disconnectToken ) : void
connection IConnection
connectionData string
disconnectToken System.Threading.CancellationToken
리턴 void

OnStartFailed() 보호된 메소드

protected OnStartFailed ( ) : void
리턴 void