Export (0) Print
Expand All

HubConnection Class

.NET Framework 4.5

A Connection for interacting with Hubs.

System.Object
  Microsoft.AspNet.SignalR.Client.Connection
    Microsoft.AspNet.SignalR.Client.Hubs.HubConnection

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

public class HubConnection extends Connection implements IHubConnection, IConnection

The HubConnection type exposes the following members.

  NameDescription
Public methodHubConnection(String)Initializes a new instance of the HubConnection class.
Public methodHubConnection(String, Boolean)Initializes a new instance of the HubConnection class.
Public methodHubConnection(String, IDictionary(String, String))Initializes a new instance of the HubConnection class.
Public methodHubConnection(String, String)Initializes a new instance of the HubConnection class.
Public methodHubConnection(String, IDictionary(String, String), Boolean)Initializes a new instance of the HubConnection class.
Public methodHubConnection(String, String, Boolean)Initializes a new instance of the HubConnection class.
Top

  NameDescription
Public propertyConnectionIdGets or sets the connection id for the connection. (Inherited from Connection.)
Public propertyConnectionTokenGets or sets the connection token for the connection. (Inherited from Connection.)
Public propertyCookieContainerGets or sets the cookies associated with the connection. (Inherited from Connection.)
Public propertyCredentialsGets or sets authentication information for the connection. (Inherited from Connection.)
Public propertyGroupsTokenGets or sets the groups token for the connection. (Inherited from Connection.)
Public propertyItemsGets a dictionary for storing state for a the connection. (Inherited from Connection.)
Public propertyMessageIdGets or sets the last message id for the connection. (Inherited from Connection.)
Public propertyProxyGets of sets proxy information for the connection. (Inherited from Connection.)
Public propertyQueryStringGets the query string specified in the constructor. (Inherited from Connection.)
Public propertyStateGets the current ConnectionState of the connection. (Inherited from Connection.)
Public propertyTransport (Inherited from Connection.)
Public propertyUrlGets the url for the connection. (Inherited from Connection.)
Top

  NameDescription
Public methodCreateHubProxyCreates an IHubProxy for the hub with the specified name.
Public methodDisconnectStops the Connection without sending an abort message to the server. (Inherited from Connection.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnMessageReceived (Overrides Connection.OnMessageReceived(JToken).)
Protected methodOnSending (Overrides Connection.OnSending().)
Public methodRegisterCallback
Public methodSend(Object) Sends an object that will be JSON serialized asynchronously over the connection. (Inherited from Connection.)
Public methodSend(String)Sends data asynchronously over the connection. (Inherited from Connection.)
Public methodStart()Starts the Connection. (Inherited from Connection.)
Public methodStart(IClientTransport)Starts the Connection. (Inherited from Connection.)
Public methodStart(IHttpClient)Starts the Connection. (Inherited from Connection.)
Public methodStopStops the Connection and sends an abort message to the server. (Inherited from Connection.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public eventClosedOccurs when the Connection is stopped. (Inherited from Connection.)
Public eventErrorOccurs when the Connection has encountered an error. (Inherited from Connection.)
Public eventReceivedOccurs when the Connection has received data from the server. (Inherited from Connection.)
Public eventReconnectedOccurs when the Connection successfully reconnects after a timeout. (Inherited from Connection.)
Public eventReconnectingOccurs when the Connection starts reconnecting after an error. (Inherited from Connection.)
Public eventStateChangedOccurs when the Connection state changes. (Inherited from Connection.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft