C# Class Microsoft.AspNet.SignalR.Client.Transports.LongPollingTransport

Inheritance: Microsoft.AspNet.SignalR.Client.Transports.HttpBasedTransport
Exibir arquivo Open project: SignalR/SignalR Class Usage Examples

Public Methods

Method Description
LongPollingTransport ( ) : System
LongPollingTransport ( IHttpClient httpClient ) : System
LostConnection ( IConnection connection ) : void

Aborts the currently active polling request thereby forcing a reconnect.

Protected Methods

Method Description
OnStart ( IConnection connection, string connectionData, CancellationToken disconnectToken ) : void
OnStartFailed ( ) : void

Private Methods

Method Description
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

Method Details

LongPollingTransport() public method

public LongPollingTransport ( ) : System
return System

LongPollingTransport() public method

public LongPollingTransport ( IHttpClient httpClient ) : System
httpClient IHttpClient
return System

LostConnection() public method

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

OnStart() protected method

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

OnStartFailed() protected method

protected OnStartFailed ( ) : void
return void