C# Class UniversityChat.Chat.ChatHub

Inheritance: Hub
Exibir arquivo Open project: jschefter/UniversityChat

Public Methods

Method Description
CreateChannel ( string channelName ) : void
DeleteChannel ( string channelName ) : void
GetChannelList ( ) : void
JoinChannel ( string channelName ) : void
LeaveChannel ( string channelName ) : void
OnConnected ( ) : System.Threading.Tasks.Task
OnDisconnected ( ) : System.Threading.Tasks.Task
OnReconnected ( ) : System.Threading.Tasks.Task
Send ( string channelName, string message ) : void
SetUsername ( string userName ) : void

Private Methods

Method Description
logConnection ( HubCallerContext Context ) : void
logDisconnect ( HubCallerContext Context, User user ) : void
logEvent ( System.Guid connectionId, System.Guid userId, string message ) : void
logJoinChannel ( HubCallerContext Context, User user, string channelName ) : void
logLeaveChannel ( HubCallerContext Context, User user, string channelName ) : void
logReconnect ( HubCallerContext Context ) : void
logSendMessage ( HubCallerContext Context, User user, string channelName ) : void
logSetUsername ( HubCallerContext Context, string userName ) : void

Method Details

CreateChannel() public method

public CreateChannel ( string channelName ) : void
channelName string
return void

DeleteChannel() public method

public DeleteChannel ( string channelName ) : void
channelName string
return void

GetChannelList() public method

public GetChannelList ( ) : void
return void

JoinChannel() public method

public JoinChannel ( string channelName ) : void
channelName string
return void

LeaveChannel() public method

public LeaveChannel ( string channelName ) : void
channelName string
return void

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

Send() public method

public Send ( string channelName, string message ) : void
channelName string
message string
return void

SetUsername() public method

public SetUsername ( string userName ) : void
userName string
return void