C# 클래스 Drey.Configuration.Infrastructure.HubConnectionManager

Monitors and heals a HubConnection upon failure
상속: IHubConnectionManager, IDisposable
파일 보기 프로젝트 열기: dealproc/Drey 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

비공개 메소드들

메소드 설명
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

메소드 상세

CreateHubProxy() 공개 메소드

Creates the hub proxy.
hubName
public CreateHubProxy ( string hubName ) : IHubProxy
hubName string Name of the hub.
리턴 IHubProxy

Dispose() 공개 메소드

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

Dispose() 보호된 메소드

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.
리턴 void

GetHubConnectionManager() 공개 정적인 메소드

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

GetHubConnectionManager() 공개 정적인 메소드

Gets the hub connection manager.
public static GetHubConnectionManager ( string url ) : IHubConnectionManager
url string The URL.
리턴 IHubConnectionManager

Initialize() 공개 메소드

Initializes the HubConnection and starts the connection with the server.
public Initialize ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

Stop() 공개 메소드

Shuts-down the managed HubConnection.
public Stop ( ) : void
리턴 void

UseClientCertificate() 공개 메소드

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.
리턴 void