C# Class Microsoft.AspNetCore.SignalR.Hub

Provides methods that communicate with SignalR connections that connected to a Hub.
Inheritance: IHub
显示文件 Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript

Public Methods

Method Description
Dispose ( ) : void
OnConnected ( ) : System.Threading.Tasks.Task

Called when the connection connects to this hub instance.

OnDisconnected ( bool stopCalled ) : System.Threading.Tasks.Task

Called when a connection disconnects from this hub gracefully or due to a timeout.

OnReconnected ( ) : System.Threading.Tasks.Task

Called when the connection reconnects to this hub instance.

Protected Methods

Method Description
Dispose ( bool disposing ) : void
Hub ( ) : System.Threading.Tasks

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Hub() protected method

protected Hub ( ) : System.Threading.Tasks
return System.Threading.Tasks

OnConnected() public method

Called when the connection connects to this hub instance.
public OnConnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnDisconnected() public method

Called when a connection disconnects from this hub gracefully or due to a timeout.
public OnDisconnected ( bool stopCalled ) : System.Threading.Tasks.Task
stopCalled bool /// true, if stop was called on the client closing the connection gracefully; /// false, if the connection has been lost for longer than the /// . /// Timeouts can be caused by clients reconnecting to another SignalR server in scaleout. ///
return System.Threading.Tasks.Task

OnReconnected() public method

Called when the connection reconnects to this hub instance.
public OnReconnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task