C# Class SignalR.Sample.Demo.Controllers.MyHub

Inheritance: Hub
Mostra file Open project: huangxiaoning/SignalR2.0.Demo

Public Methods

Method Description
JoinGroup ( string groupName ) : System.Threading.Tasks.Task
LeaveGroup ( string groupName ) : System.Threading.Tasks.Task
OnConnected ( ) : System.Threading.Tasks.Task
OnDisconnected ( ) : System.Threading.Tasks.Task
OnReconnected ( ) : System.Threading.Tasks.Task
SendMessage ( ) : void
SendMessage ( string name, string message ) : void

Method Details

JoinGroup() public method

public JoinGroup ( string groupName ) : System.Threading.Tasks.Task
groupName string
return System.Threading.Tasks.Task

LeaveGroup() public method

public LeaveGroup ( string groupName ) : System.Threading.Tasks.Task
groupName string
return System.Threading.Tasks.Task

OnConnected() public method

public OnConnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnDisconnected() public method

public OnDisconnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnReconnected() public method

public OnReconnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SendMessage() public method

public SendMessage ( ) : void
return void

SendMessage() public method

public SendMessage ( string name, string message ) : void
name string
message string
return void