public void Execute_SendTheMessageToRemoteHost(SignalRConnector.LogLevel level, IEnumerable<string> messages) { var task=this.GetSendTheMessageToRemoteHostTask(level,messages); task.Start(); task.Wait(); }
public ActionResult SendMessage(string message) { UserData userData = (UserData)Session["UserData"]; bool result = SignalRConnector.SendMessage(userData, message); return(Json(result)); }
public ActionResult Connect(string name, string email, string number) { UserData userData = new UserData(); userData.Name = name; userData.Email = email; userData.Phone = number; Session.Add("UserData", userData); bool result = SignalRConnector.AddThisUser(userData); return(Json(result)); }
protected override void SendTheMessageToRemoteHost(SignalRConnector.LogLevel level, System.Collections.Generic.IEnumerable<string> messages) { base.SendTheMessageToRemoteHost(level, messages); HasMessageToRemoteHostSent = true; }