C# Class Microsoft.AspNet.SignalR.Transports.TransportHeartbeat

Default implementation of ITransportHeartbeat.
Inheritance: ITransportHeartbeat, IDisposable
Afficher le fichier Open project: SignalR/SignalR

Private Properties

Свойство Type Description
Beat void
CheckDisconnect void
CheckTimeoutAndKeepAlive void
OnKeepAliveError void
RaiseDisconnect bool
RaiseKeepAlive bool
RaiseTimeout bool

Méthodes publiques

Méthode Description
AddOrUpdateConnection ( ITrackingConnection connection ) : ITrackingConnection

Adds a new connection to the list of tracked connections.

Dispose ( ) : void
GetConnections ( ) : IList
MarkConnection ( ITrackingConnection connection ) : void

Marks an existing connection as active.

RemoveConnection ( ITrackingConnection connection ) : void

Removes a connection from the list of tracked connections.

TransportHeartbeat ( IDependencyResolver resolver ) : System

Initializes and instance of the TransportHeartbeat class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
Beat ( object state ) : void
CheckDisconnect ( ConnectionMetadata metadata ) : void
CheckTimeoutAndKeepAlive ( ConnectionMetadata metadata ) : void
OnKeepAliveError ( AggregateException ex, object state ) : void
RaiseDisconnect ( ConnectionMetadata metadata ) : bool
RaiseKeepAlive ( ConnectionMetadata metadata ) : bool
RaiseTimeout ( ConnectionMetadata metadata ) : bool

Method Details

AddOrUpdateConnection() public méthode

Adds a new connection to the list of tracked connections.
public AddOrUpdateConnection ( ITrackingConnection connection ) : ITrackingConnection
connection ITrackingConnection The connection to be added.
Résultat ITrackingConnection

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetConnections() public méthode

public GetConnections ( ) : IList
Résultat IList

MarkConnection() public méthode

Marks an existing connection as active.
public MarkConnection ( ITrackingConnection connection ) : void
connection ITrackingConnection The connection to mark.
Résultat void

RemoveConnection() public méthode

Removes a connection from the list of tracked connections.
public RemoveConnection ( ITrackingConnection connection ) : void
connection ITrackingConnection The connection to remove.
Résultat void

TransportHeartbeat() public méthode

Initializes and instance of the TransportHeartbeat class.
public TransportHeartbeat ( IDependencyResolver resolver ) : System
resolver IDependencyResolver The .
Résultat System