public bool ServerRabbit_Send(string message, string queue, string hostname) { string jason_data_RAbbitMQ = ""; string MachinePath = ConfigurationManager.AppSettings["ServerQueueURL"]; string RequestQueueName = ConfigurationManager.AppSettings["ServerQueue"]; string userName = ConfigurationManager.AppSettings["r_username"]; string Password = ConfigurationManager.AppSettings["r_password"]; jason_data_RAbbitMQ = message; MessageProducer msgProducer1 = new MessageProducer(MachinePath, userName, Password); msgProducer1.declareQueue(RequestQueueName); msgProducer1.SendMessage(jason_data_RAbbitMQ, RequestQueueName); //return jason_data_RAbbitMQ; return(true); }