Esempio n. 1
0
 public void Execute_SendTheMessageToRemoteHost(SignalRConnector.LogLevel level,
                                                IEnumerable<string> messages)
 {
     var task=this.GetSendTheMessageToRemoteHostTask(level,messages);
     task.Start();
     task.Wait();
 }
Esempio n. 2
0
        public ActionResult SendMessage(string message)
        {
            UserData userData = (UserData)Session["UserData"];

            bool result = SignalRConnector.SendMessage(userData, message);

            return(Json(result));
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
 protected override void SendTheMessageToRemoteHost(SignalRConnector.LogLevel level, System.Collections.Generic.IEnumerable<string> messages)
 {
     base.SendTheMessageToRemoteHost(level, messages);
     HasMessageToRemoteHostSent = true;
 }