IMessageQueueCallAsync Method |
Send a remote procedure call. It expects an answer of type ReturnValue.
Namespace:
AskiaPortalCmn
Assembly:
AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax Task<IReturnValue<string>> CallAsync(
IContext context,
string message,
Dictionary<MatchItemKeys, Object> arguments,
int timeout = -1
)
Function CallAsync (
context As IContext,
message As String,
arguments As Dictionary(Of MatchItemKeys, Object),
Optional timeout As Integer = -1
) As Task(Of IReturnValue(Of String))
Task<IReturnValue<String^>^>^ CallAsync(
IContext^ context,
String^ message,
Dictionary<MatchItemKeys, Object^>^ arguments,
int timeout = -1
)
Parameters
- context
- Type: AskiaPortalCmnIContext
Context of execution. - message
- Type: SystemString
Text that sender wants to send - arguments
- Type: System.Collections.GenericDictionaryMatchItemKeys, Object
A list of KeyValue pairs with some metadata. Ex: (entity, survery), (action, publish). - timeout (Optional)
- Type: SystemInt32
Maximum time (milliseconds) to return an answer. If timeout is reached, the result will be false. For waiting without timeout, set timeout to -1
Return Value
Type:
TaskIReturnValueStringReturns true when the message is sent and the listener answered without errors. False if timeout or listener returned an error.
See Also