C# Class Ultralight.MessageStore.InMemoryMessageStore

Inheritance: IMessageStore
Mostra file Open project: ernstnaezer/ultralight

Public Methods

Method Description
CountMessages ( ) : int

Counts the messages.

Enqueue ( string message ) : void

Enqueues the specified message.

HasMessages ( ) : bool

Determines whether this instance has messages.

TryDequeue ( string &message ) : bool

Tries to dequeue a message.

TryPeek ( string &messages, int numberOfMessages ) : bool

Tries to peek the first message.

Method Details

CountMessages() public method

Counts the messages.
public CountMessages ( ) : int
return int

Enqueue() public method

Enqueues the specified message.
public Enqueue ( string message ) : void
message string The message.
return void

HasMessages() public method

Determines whether this instance has messages.
public HasMessages ( ) : bool
return bool

TryDequeue() public method

Tries to dequeue a message.
public TryDequeue ( string &message ) : bool
message string The message.
return bool

TryPeek() public method

Tries to peek the first message.
public TryPeek ( string &messages, int numberOfMessages ) : bool
messages string The messages.
numberOfMessages int The number of messages.
return bool