Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var factory = new ConnectionFactory() { HostName = "localhost" };
            using (var connection = factory.CreateConnection())
            {
                using (var channel = connection.CreateModel())
                {
                    channel.QueueDeclare("StartR.SignalR", true, false, false, null);

                    ClientQualification qual = new ClientQualification();
                    qual.BestCallTime = DateTime.Now.AddHours(5);
                    qual.PredictiveCreditScore = 725;
                    qual.QualityRating = 75;
                    qual.TodaysMood = "Happy Happy";

                    var ser = new XmlSerializer<ClientQualification>();
                    var body = Encoding.UTF8.GetBytes(ser.Serialize(qual));
                    channel.BasicPublish("", "StartR.SignalR", null, body);
                    toolStripStatusLabel1.Text = "Done...";
                }
            }
        }
Ejemplo n.º 2
0
 public void UpdateQualification(ClientQualification cQual)
 {
     _clientQualification.UpdateQualification(cQual);
 }
Ejemplo n.º 3
0
 public void UpdateQualification(ClientQualification cQual)
 {
     Clients.All.updateQualification(cQual);
 }