Click or drag to resize
S101ClientSendMessageAsync Method (S101Message, Byte)
Sends message followed by payload.

Namespace: Lawo.EmberPlusSharp.S101
Assembly: Lawo.EmberPlusSharp (in Lawo.EmberPlusSharp.dll) Version: 1.4.1707.27006
Syntax
C#
public Task SendMessageAsync(
	S101Message message,
	byte[] payload
)

Parameters

message
Type: Lawo.EmberPlusSharp.S101S101Message
The message to send.
payload
Type: SystemByte
The payload to send after the message. Must be equal to null if Command does not allow for a payload. Must reference an appropriate payload if Command requires a payload.

Return Value

Type: Task
Exceptions
ExceptionCondition
ArgumentException
  • The Command property of message is of a type that requires a payload and payload equals null, or
  • The Command property of message is of a type that does not allow for a payload and payload is not equal to null.
ExceptionAn exception was thrown from one of the callbacks passed to the constructor, see Message for more information.
InvalidOperationExceptionThis method was called from a thread other than the one that executed the constructor.
ObjectDisposedExceptionDispose has been called or the ConnectionLost event has been raised.
OperationCanceledExceptionDispose has been called or the ConnectionLost event has been raised.
See Also