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

A Connection for interacting with Hubs.
Inheritance: Connection, IHubConnection
显示文件 Open project: SignalR/SignalR Class Usage Examples

Public Methods

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

Protected Methods

Method Description
OnClosed ( ) : void
OnSending ( ) : string

Private Methods

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

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

HubConnection() public method

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

HubConnection() public method

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.
return System

HubConnection() public method

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.
return System

HubConnection() public method

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.
return System

HubConnection() public method

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.
return System

HubConnection() public method

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.
return System

OnClosed() protected method

protected OnClosed ( ) : void
return void

OnSending() protected method

protected OnSending ( ) : string
return string