private void btnEnvoyer_Click(object sender, EventArgs e) { ReservationInfos message = new ReservationInfos(txtClient.Text, txtVol.Text, txtHotel.Text); QueueMSMQ msmq = new QueueMSMQ(); msmq.EcrireQueue(message); }
public ReservationRess FetchReservation() { QueueMSMQ queue = new QueueMSMQ(); ReservationInfos reservationsinfos = queue.LireQueue(); return(new ReservationRess(reservationsinfos.client, Convert.ToInt16(reservationsinfos.vol), Convert.ToInt16(reservationsinfos.hotel))); }
public void Put(int id, [FromBody] ReservationInfos message) { QueueMSMQ msmq = new QueueMSMQ(); msmq.EcrireQueue(message); }