C# Class Microsoft.AspNet.SignalR.Client.HubConnection

A Connection for interacting with Hubs.
Inheritance: Connection, IHubConnection
Afficher le fichier Open project: SignalR/SignalR Class Usage Examples

Méthodes publiques

Méthode Description
CreateHubProxy ( string hubName ) : IHubProxy

Creates an IHubProxy for the hub with the specified name.

HubConnection ( string url ) : System

Initializes a new instance of the HubConnection class.

HubConnection ( string url, string>.IDictionary queryString ) : System

Initializes a new instance of the HubConnection class.

HubConnection ( string url, string>.IDictionary queryString, bool useDefaultUrl ) : System

Initializes a new instance of the HubConnection class.

HubConnection ( string url, bool useDefaultUrl ) : System

Initializes a new instance of the HubConnection class.

HubConnection ( string url, string queryString ) : System

Initializes a new instance of the HubConnection class.

HubConnection ( string url, string queryString, bool useDefaultUrl ) : System

Initializes a new instance of the HubConnection class.

Méthodes protégées

Méthode Description
OnClosed ( ) : void
OnSending ( ) : string

Private Methods

Méthode Description
ClearInvocationCallbacks ( string error ) : void
GetUrl ( string url, bool useDefaultUrl ) : string
IHubConnection ( Action callback ) : string
IHubConnection ( string callbackId ) : void
OnMessageReceived ( JToken message ) : void
OnReconnecting ( ) : void

Method Details

CreateHubProxy() public méthode

Creates an IHubProxy for the hub with the specified name.
public CreateHubProxy ( string hubName ) : IHubProxy
hubName string The name of the hub.
Résultat IHubProxy

HubConnection() public méthode

Initializes a new instance of the HubConnection class.
public HubConnection ( string url ) : System
url string The url to connect to.
Résultat System

HubConnection() public méthode

Initializes a new instance of the HubConnection class.
public HubConnection ( string url, string>.IDictionary queryString ) : System
url string The url to connect to.
queryString string>.IDictionary The query string data to pass to the server.
Résultat System

HubConnection() public méthode

Initializes a new instance of the HubConnection class.
public HubConnection ( string url, string>.IDictionary queryString, bool useDefaultUrl ) : System
url string The url to connect to.
queryString string>.IDictionary The query string data to pass to the server.
useDefaultUrl bool Determines if the default "/signalr" path should be appended to the specified url.
Résultat System

HubConnection() public méthode

Initializes a new instance of the HubConnection class.
public HubConnection ( string url, bool useDefaultUrl ) : System
url string The url to connect to.
useDefaultUrl bool Determines if the default "/signalr" path should be appended to the specified url.
Résultat System

HubConnection() public méthode

Initializes a new instance of the HubConnection class.
public HubConnection ( string url, string queryString ) : System
url string The url to connect to.
queryString string The query string data to pass to the server.
Résultat System

HubConnection() public méthode

Initializes a new instance of the HubConnection class.
public HubConnection ( string url, string queryString, bool useDefaultUrl ) : System
url string The url to connect to.
queryString string The query string data to pass to the server.
useDefaultUrl bool Determines if the default "/signalr" path should be appended to the specified url.
Résultat System

OnClosed() protected méthode

protected OnClosed ( ) : void
Résultat void

OnSending() protected méthode

protected OnSending ( ) : string
Résultat string