Exemple #1
0
 private void AddUser()
 {
     OnlineUserPool.AddUser(new Model.ViewModel.HubUser()
     {
         ConnectionId = Context.ConnectionId,
         UserId       = GetUserId()
     });
 }
Exemple #2
0
 public void Online(string userId)
 {
     Clients.Others.SayHello("Hello");
     OnlineUserPool.AddUser(new Model.ViewModel.HubUser()
     {
         ConnectionId = Context.ConnectionId,
         UserId       = userId
     });
 }