Export (0) Print
Expand All

Connection Class

.NET Framework 4.5

Provides client connections for SignalR services.

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

'Declaration
Public Class Connection _
	Implements IConnection
'Usage
Dim instance As Connection

The Connection type exposes the following members.

  NameDescription
Public methodConnection(String)Initializes a new instance of the Connection class.
Public methodConnection(String, IDictionary(Of String, String))Initializes a new instance of the Connection class.
Public methodConnection(String, String)Initializes a new instance of the Connection class.
Top

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

  NameDescription
Public methodDisconnectStops the Connection without sending an abort message to the server.
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
Protected methodOnSending
Public methodSend(Object) Sends an object that will be JSON serialized asynchronously over the connection.
Public methodSend(String)Sends data asynchronously over the connection.
Public methodStartStarts the Connection.
Public methodStart(IClientTransport)Starts the Connection.
Public methodStart(IHttpClient)Starts the Connection.
Public methodStopStops the Connection and sends an abort message to the server.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public eventClosedOccurs when the Connection is stopped.
Public eventErrorOccurs when the Connection has encountered an error.
Public eventReceivedOccurs when the Connection has received data from the server.
Public eventReconnectedOccurs when the Connection successfully reconnects after a timeout.
Public eventReconnectingOccurs when the Connection starts reconnecting after an error.
Public eventStateChangedOccurs when the Connection state changes.
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:
© 2015 Microsoft