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

Default implementation of ITransportHeartbeat.
Inheritance: ITransportHeartbeat, IDisposable
Show file Open project: SignalR/SignalR

Private Properties

Property Type Description
Beat void
CheckDisconnect void
CheckTimeoutAndKeepAlive void
OnKeepAliveError void
RaiseDisconnect bool
RaiseKeepAlive bool
RaiseTimeout bool

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

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

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

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetConnections() public method

public GetConnections ( ) : IList
return IList

MarkConnection() public method

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

RemoveConnection() public method

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

TransportHeartbeat() public method

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