Click or drag to resize

ExtensionMethodsTryDequeue Method

Tries to dequeue a message from the dispatcher queue. Returns true if successful, false otherwise.

Namespace: SanteDB.Core
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public static bool TryDequeue(
	this IDispatcherQueueManagerService svc,
	string queueName,
	out DispatcherQueueEntry queueEntry
)

Parameters

svc  IDispatcherQueueManagerService
The service implementation to dequeue from.
queueName  String
The name of the queue to dequeue from.
queueEntry  DispatcherQueueEntry
Out; the entry that was dequeued.

Return Value

Boolean
True if the operation succeeded, false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDispatcherQueueManagerService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also