/// <summary> /// dequeue customer from Distributed Queue /// </summary> private static void DequeueFromQueue() { // store Dequeued customer in a variable Customer customer = _distributedQueue.Dequeue(); // print customer details on output PrintCustomerDetails(customer); // print next customer details on output Console.WriteLine("Next object to Dequeue: "); PrintCustomerDetails(_distributedQueue.Peek()); }
/// <summary> /// remove queue entry by Customer /// </summary> /// <param name="distributedList"></param> public void RemoveQueueValue(IDistributedQueue <object> distributedQueue) { distributedQueue.WriteThruOptions = new WriteThruOptions(WriteMode.WriteThru, WriteThruProviderName); distributedQueue.Dequeue(); }