Share via


IHubConnection Interface

.NET Framework 4.5

Represents a hub connection.

Namespace:  Microsoft.AspNet.SignalR.Client.Hubs
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)

Syntax

'Declaration
Public Interface IHubConnection _
    Inherits IConnection
'Usage
Dim instance As IHubConnection
public interface IHubConnection : IConnection
public interface class IHubConnection : IConnection
type IHubConnection =  
    interface 
        interface IConnection 
    end
public interface IHubConnection extends IConnection

The IHubConnection type exposes the following members.

Properties

  Name Description
Public property Certificates Gets the certificates of X509CertificateCollection for the IConnection. (Inherited from IConnection.)
Public property ConnectionId Gets the connection id for the IConnection. (Inherited from IConnection.)
Public property ConnectionToken Gets or sets the connection token for the IConnection. (Inherited from IConnection.)
Public property CookieContainer Gets or sets the cookies associated with the IConnection. (Inherited from IConnection.)
Public property Credentials Gets or sets the authentication information for the IConnection. (Inherited from IConnection.)
Public property GroupsToken Gets or sets the groups token for the IConnection. (Inherited from IConnection.)
Public property Headers Gets the headers for the requests. (Inherited from IConnection.)
Public property Items Gets a dictionary for storing state for the IConnection. (Inherited from IConnection.)
Public property JsonSerializer Gets the serializer used by the IConnection. (Inherited from IConnection.)
Public property KeepAliveData Gets or sets the object to keep alive data for the IConnection. (Inherited from IConnection.)
Public property MessageId Gets or sets the last message id for the IConnection. (Inherited from IConnection.)
Public property Protocol Gets or sets the protocol for the IConnection. (Inherited from IConnection.)
Public property Proxy Gets or sets the proxy information for the IConnection. (Inherited from IConnection.)
Public property QueryString Gets the query string specified in the constructor. (Inherited from IConnection.)
Public property State Gets the current ConnectionState of the IConnection. (Inherited from IConnection.)
Public property Transport Gets the client transport for the IConnection. (Inherited from IConnection.)
Public property TransportConnectTimeout Gets or sets a TimeSpan representing the amount of time to transport connection before timing out. (Inherited from IConnection.)
Public property Url Gets the url for the IConnection. (Inherited from IConnection.)

Top

Methods

  Name Description
Public method ChangeState Called when the IConnection to change state. (Inherited from IConnection.)
Public method Disconnect Stops the IConnection without sending an abort message to the server. This function is called after we receive a disconnect message from the server. (Inherited from IConnection.)
Public method OnConnectionSlow Called when the IConnection is about to timeout. (Inherited from IConnection.)
Public method OnError Called when the IConnection has encountered an error. (Inherited from IConnection.)
Public method OnReceived Called when the IConnection has received data from the server. (Inherited from IConnection.)
Public method OnReconnected Called when the IConnection successfully reconnects after a timeout. (Inherited from IConnection.)
Public method OnReconnecting Called when the IConnection starts reconnecting after and error. (Inherited from IConnection.)
Public method PrepareRequest Prepares all request for the IConnection. (Inherited from IConnection.)
Public method RegisterCallback Registers a callback function for the hub connection.
Public method RemoveCallback
Public method Send Sends data asynchronously over the IConnection. (Inherited from IConnection.)
Public method Stop Stops IConnection and sends an abort message to the server. (Inherited from IConnection.)
Public method Trace Traces an IConnection method that is specified by the parameters. (Inherited from IConnection.)
Public method UpdateLastKeepAlive Updates the object to store the various keep alive timeout values. (Inherited from IConnection.)

Top

Extension Methods

  Name Description
Public Extension Method EnsureReconnecting (Defined by ConnectionExtensions.)
Public Extension Method GetValue<T> (Defined by ConnectionExtensions.)
Public Extension Method JsonDeserializeObject<T> (Defined by ConnectionExtensions.)
Public Extension Method JsonSerializeObject (Defined by ConnectionExtensions.)

Top

See Also

Reference

Microsoft.AspNet.SignalR.Client.Hubs Namespace