예제 #1
0
        public void ConfirmBooking(IQueueManager queueManager, INotificationManager notificationManager)
        {
            var fileQueueConfig = new FileQueueConfig();
            while (true)
            {
                var bookingRequest = queueManager.GetPendingBookingRequest(fileQueueConfig);

                if (bookingRequest != null)
                {
                    // book room

                    // Send Notification

                    // set booking request to complete
                    queueManager.SetBookingRequestComplete(new BookingResponse(), fileQueueConfig);
                }
            }
        }
예제 #2
0
        public void ConfirmBooking(IQueueManager queueManager, INotificationManager notificationManager)
        {
            var fileQueueConfig = new FileQueueConfig();

            while (true)
            {
                var bookingRequest = queueManager.GetPendingBookingRequest(fileQueueConfig);

                if (bookingRequest != null)
                {
                    // book room


                    // Send Notification


                    // set booking request to complete
                    queueManager.SetBookingRequestComplete(new BookingResponse(), fileQueueConfig);
                }
            }
        }