C# Класс SevenDigital.Messaging.MessageReceiving.LocalQueue.LocalQueuePollingNode

Message polling node that reads from a locally accessible DiskQueue
Наследование: ITypedPollingNode
Показать файл Открыть проект

Открытые методы

Метод Описание
AddMessageType ( Type type ) : void

A message type for which to poll

BlockUntilReady ( ) : bool

Advisory method: block if the queue is waiting to be populated.

Always immediately returns true in this instance.

Enqueue ( IPendingMessage work ) : void

Not supported

Length ( ) : int

Approximate snapshot length.

Always returns zero in this instance.

LocalQueuePollingNode ( string dispatchPath, string incomingPath, IMessageSerialiser serialiser, ISleepWrapper sleeper ) : System

Create a local polling node.

You should not use this yourself. Use:

MessagingSystem.Configure.WithLocalQueue(...);

and receive messages as normal.

Stop ( ) : void

Stop receiving messages

Deregisters all message types

TryDequeue ( ) : IWorkQueueItem>

Try and get an item from this queue. Success is encoded in the WorkQueueItem{T} result 'HasItem'

Приватные методы

Метод Описание
Ignore ( ) : void

Ignore exceptions of this type

TryPumpingMessages ( IPersistentQueue dispatchQueue ) : void

Try to move messages from the incoming queue to the dispatch queue

Описание методов

AddMessageType() публичный Метод

A message type for which to poll
public AddMessageType ( Type type ) : void
type System.Type
Результат void

BlockUntilReady() публичный Метод

Advisory method: block if the queue is waiting to be populated.

Always immediately returns true in this instance.

public BlockUntilReady ( ) : bool
Результат bool

Enqueue() публичный Метод

Not supported
public Enqueue ( IPendingMessage work ) : void
work IPendingMessage
Результат void

Length() публичный Метод

Approximate snapshot length.

Always returns zero in this instance.

public Length ( ) : int
Результат int

LocalQueuePollingNode() публичный Метод

Create a local polling node.

You should not use this yourself. Use:

MessagingSystem.Configure.WithLocalQueue(...);

and receive messages as normal.
public LocalQueuePollingNode ( string dispatchPath, string incomingPath, IMessageSerialiser serialiser, ISleepWrapper sleeper ) : System
dispatchPath string
incomingPath string
serialiser IMessageSerialiser
sleeper ISleepWrapper
Результат System

Stop() публичный Метод

Stop receiving messages

Deregisters all message types

public Stop ( ) : void
Результат void

TryDequeue() публичный Метод

Try and get an item from this queue. Success is encoded in the WorkQueueItem{T} result 'HasItem'
public TryDequeue ( ) : IWorkQueueItem>
Результат IWorkQueueItem>