public BasicCookie(User user) { User = user; UserList = null; ChatList = null; MessageList = null; }
public void Update(string name,string url) { var context = GlobalHost.ConnectionManager.GetHubContext<ChatHub>(); User aux = new User(); aux.id=Context.ConnectionId; aux.name=name; aux.url = url; users.Add(aux); UpdateHub();//Actualiza listado }
public ActionResult Index(User user) { var basicCookie = new BasicCookie(user); return View(basicCookie); }