Skip to content

f6246944 3211 e264 8a7f 41a560e3832e

Axel Kesseler edited this page Mar 1, 2023 · 16 revisions

IObservableQueue(TItem) Interface

This interface represents an observable queue.

Namespace: Plexdata.LogWriter.Abstraction
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1

Syntax

C#

public interface IObservableQueue<TItem>

Type Parameters

 

TItem
The type to be assigned with an instance of the queue.
  The IObservableQueue(TItem) type exposes the following members.

Properties

 

Name Description
Public property Count Gets the number of items currently in the queue.
Public property IsEmpty Determines if the queue is currently empty.
  Back to Top

Methods

 

Name Description
Public method Clear Removes all items from the queue.
Public method Dequeue Removes an item from the top of the queue and returns it.
Public method DequeueAll Removes all items from the queue and returns them.
Public method Enqueue Adds provided item at the end of the queue.
Public method Peek Returns the item at the beginning of the queue but without removing it.
Public method Trim Sets the capacity to the actual number of queued items.
  Back to Top

Events

 

Name Description
Public event Dequeued Informs about item dequeuing.
Public event Enqueued Informs about item enqueuing.
  Back to Top

Remarks

Classes derived from this interface may handle an access to the queued items in different ways.

See Also

Reference

Plexdata.LogWriter.Abstraction Namespace

Clone this wiki locally