Exemple #1
0
 public override Task OnDisconnectedAsync(Exception exception)
 {
     SignalRHubConnectionHandler.RemoveConnection(Context.ConnectionId);
     return(base.OnDisconnectedAsync(exception));
 }
Exemple #2
0
 public override Task OnConnectedAsync()
 {
     SignalRHubConnectionHandler.AddConnection(Context.ConnectionId, Context.User.Identity.Name);
     return(base.OnConnectedAsync());
 }