public static void QueueEmployeeUpdate(MQBatchRequest batchRequest) { MessageQueue queue = GetQueue(EmployeeQueue, QueueAccessMode.Send); batchRequest.QueueTarget = EmployeeQueue; queue.Send(batchRequest, MessageQueueTransactionType.Single); }
public static void PushTripStatus(string TripID, EventDef aEvent) { MessageQueue queue = GetQueue(TripQueue, QueueAccessMode.Send); MessageQueueTransactionType txnType = MessageQueueTransactionType.Single; MQBatchRequest mqBatchRequest = new MQBatchRequest() { EventType = aEvent, MessageData = TripID, QueueTarget = TripQueue }; queue.Send(mqBatchRequest, txnType); }
public static void PushTripInfo(string TripID, int EmployeeID, EventDef aEvent) { MessageQueue queue = GetQueue(TripQueue, QueueAccessMode.Send); MessageQueueTransactionType txnType = MessageQueueTransactionType.Single; MQBatchRequest mqBatchRequest = new MQBatchRequest() { EventType = aEvent, MessageData = new TripPersonUpdate() { TripID = TripID, EmployeeID = EmployeeID }, QueueTarget = TripQueue }; queue.Send(mqBatchRequest, txnType); }