C-DEngine 5.105

TheCommRequestResponse..::..PublishResponseMessageJson<(Of <(<'outputT>)>)> Method

Publishes the response message back to the originator of the originalMessage with the responseParameters serialized to a JSON string in the payload.

Namespace:  nsCDEngine.Communication
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static bool PublishResponseMessageJson<outputT>(
	TSM originalMessage,
	outputT responseParameters,
	byte[] PLB
)
Public Shared Function PublishResponseMessageJson(Of outputT) ( _
	originalMessage As TSM, _
	responseParameters As outputT, _
	PLB As Byte() _
) As Boolean
public:
generic<typename outputT>
static bool^ PublishResponseMessageJson(
	TSM^ originalMessage, 
	outputT responseParameters, 
	array<unsigned char^>^ PLB
)

Type Parameters

outputT

Parameters

originalMessage
Type: nsCDEngine.BaseClasses..::..TSM
The incoming receiving message.
responseParameters
Type: outputT
The object to send back, which will be serialized to JSON in the payload of the message.
PLB
Type: array<Byte>[]()[][]
(Optional) The returning PLB (payload binary).

Return Value