C# Class Drey.Configuration.Infrastructure.HubConnectionManager

Monitors and heals a HubConnection upon failure
Inheritance: IHubConnectionManager, IDisposable
Afficher le fichier Open project: dealproc/Drey Class Usage Examples

Méthodes publiques

Méthode Description
CreateHubProxy ( string hubName ) : IHubProxy

Creates the hub proxy.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetHubConnectionManager ( HubConnection hubConnection ) : IHubConnectionManager

Gets the hub connection manager.

GetHubConnectionManager ( string url ) : IHubConnectionManager

Gets the hub connection manager.

Initialize ( ) : System.Threading.Tasks.Task

Initializes the HubConnection and starts the connection with the server.

Stop ( ) : void

Shuts-down the managed HubConnection.

UseClientCertificate ( X509Certificate2 cert ) : void

Allows the use of a client certificate by the hubconnection for client identification by the server.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Méthode Description
HubConnectionManager ( HubConnection hubConnection ) : Drey.Logging

Initializes a new instance of the HubConnectionManager class. This allows the capability of providing a custom configured HubConnection to be managed.

HubConnectionManager ( string url ) : Drey.Logging

Initializes a new instance of the HubConnectionManager class. This creates a hubconnection with default options, and assigns the provided url.

OnClosed ( ) : void
OnConnectionSlow ( ) : void
OnError ( Exception error ) : void
OnReceived ( string data ) : void
OnReconnected ( ) : void
OnReconnecting ( ) : void
OnStateChanged ( StateChange stateChange ) : void
RetryConnection ( ) : System.Threading.Tasks.Task
StartConnectionInternal ( ) : System.Threading.Tasks.Task

Method Details

CreateHubProxy() public méthode

Creates the hub proxy.
hubName
public CreateHubProxy ( string hubName ) : IHubProxy
hubName string Name of the hub.
Résultat IHubProxy

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

GetHubConnectionManager() public static méthode

Gets the hub connection manager.
public static GetHubConnectionManager ( HubConnection hubConnection ) : IHubConnectionManager
hubConnection Microsoft.AspNet.SignalR.Client.HubConnection The hub connection.
Résultat IHubConnectionManager

GetHubConnectionManager() public static méthode

Gets the hub connection manager.
public static GetHubConnectionManager ( string url ) : IHubConnectionManager
url string The URL.
Résultat IHubConnectionManager

Initialize() public méthode

Initializes the HubConnection and starts the connection with the server.
public Initialize ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

Stop() public méthode

Shuts-down the managed HubConnection.
public Stop ( ) : void
Résultat void

UseClientCertificate() public méthode

Allows the use of a client certificate by the hubconnection for client identification by the server.
public UseClientCertificate ( X509Certificate2 cert ) : void
cert System.Security.Cryptography.X509Certificates.X509Certificate2 The cert.
Résultat void