| LinkarClientSendCommandAsync Method |
Linkar Framework for .NET and Core
Allows a variety of persistent operations using standard JSON templates, in a asynchronous way.
Namespace: Linkar.Commands.PersistentAssembly: Linkar.Commands (in Linkar.Commands.dll) Version: 2.3.1
Syntax public Task<string> SendCommandAsync(
string command,
ENVELOPE_FORMAT commandFormat = ENVELOPE_FORMAT.XML,
int receiveTimeout = 0
)
Public Function SendCommandAsync (
command As String,
Optional commandFormat As ENVELOPE_FORMAT = ENVELOPE_FORMAT.XML,
Optional receiveTimeout As Integer = 0
) As Task(Of String)
public:
Task<String^>^ SendCommandAsync(
String^ command,
ENVELOPE_FORMAT commandFormat = ENVELOPE_FORMAT::XML,
int receiveTimeout = 0
)
member SendCommandAsync :
command : string *
?commandFormat : ENVELOPE_FORMAT *
?receiveTimeout : int
(* Defaults:
let _commandFormat = defaultArg commandFormat ENVELOPE_FORMAT.XML
let _receiveTimeout = defaultArg receiveTimeout 0
*)
-> Task<string>
Parameters
- command String
- Content of the operation you want to send.
- commandFormat ENVELOPE_FORMAT (Optional)
- Indicates in what format you are doing the operation: XML or JSON.
- receiveTimeout Int32 (Optional)
- Maximum time in seconds that the client will wait for a response from the server. Default = 0 to wait indefinitely.
Return Value
TaskStringThe results of the operation.
See Also