private Task GetUsers(SimpleHubMessage message)
 {
     var context = GlobalHost.ConnectionManager.GetHubContext<MultiHub>();
     message.Users = Users;
     message.From = Context.ConnectionId;
     return context.Clients.onusers(message);
 }
 public Task Candidate(SimpleHubMessage message)
 {
     var context = GlobalHost.ConnectionManager.GetHubContext<MultiHub>();
     message.Users = Users;
     message.From = Context.ConnectionId;
     return context.Clients[message.To].oncandidate(message);
 }
 public Task Disconnect()
 {
     string value;
     Users.TryRemove(Context.ConnectionId, out value);
     var message = new SimpleHubMessage {Users = Users, From = Context.ConnectionId};
     return GetUsers(message);
 }
 public Task Login(SimpleHubMessage message)
 {
     Users.TryAdd(Context.ConnectionId, message.From);
     message.Users = Users;
     message.From = Context.ConnectionId;
     return GetUsers(message);
 }