Пример #1
0
 public override Task OnConnectedAsync()
 {
     _testHubConnectionManager.AddClient(Context.ConnectionId);
     _testHubConnectionManager.AddUser(Context.UserIdentifier);
     return(Task.CompletedTask);
 }
Пример #2
0
 public override Task OnConnected()
 {
     _testHubConnectionManager.AddClient(Context.ConnectionId);
     _testHubConnectionManager.AddUser(Context.Request.QueryString["user"]);
     return(base.OnConnected());
 }