コード例 #1
0
        public static void QueueEmployeeUpdate(MQBatchRequest batchRequest)
        {
            MessageQueue queue = GetQueue(EmployeeQueue, QueueAccessMode.Send);

            batchRequest.QueueTarget = EmployeeQueue;
            queue.Send(batchRequest, MessageQueueTransactionType.Single);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }