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