| 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.481-alpha
Syntax public static bool TryDequeue(
this IDispatcherQueueManagerService svc,
string queueName,
out DispatcherQueueEntry queueEntry
)
<ExtensionAttribute>
Public Shared Function TryDequeue (
svc As IDispatcherQueueManagerService,
queueName As String,
<OutAttribute> ByRef queueEntry As DispatcherQueueEntry
) As Boolean
public:
[ExtensionAttribute]
static bool TryDequeue(
IDispatcherQueueManagerService^ svc,
String^ queueName,
[OutAttribute] DispatcherQueueEntry^% queueEntry
)
[<ExtensionAttribute>]
static member TryDequeue :
svc : IDispatcherQueueManagerService *
queueName : string *
queueEntry : DispatcherQueueEntry byref -> bool
Parameters
- svc
- Type: SanteDB.Core.QueueIDispatcherQueueManagerService
The service implementation to dequeue from. - queueName
- Type: SystemString
The name of the queue to dequeue from. - queueEntry
- Type: SanteDB.Core.QueueDispatcherQueueEntry
Out; the entry that was dequeued.
Return Value
Type:
BooleanTrue 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