C-DEngine 5.105

TheCommRequestResponse..::..PublishRequestJSonAsync<(Of <(<'inputT, outputT>)>)> Method (TheMessageAddress, TheMessageAddress, inputT)

Sends a message with JSON-serialized parameters to the targetThing and returns the response message as a deserialized object

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

Syntax


public static Task<outputT> PublishRequestJSonAsync<inputT, outputT>(
	TheMessageAddress originator,
	TheMessageAddress target,
	inputT messageParameters
)
Public Shared Function PublishRequestJSonAsync(Of inputT, outputT) ( _
	originator As TheMessageAddress, _
	target As TheMessageAddress, _
	messageParameters As inputT _
) As Task(Of outputT)
public:
generic<typename inputT, typename outputT>
static Task<outputT>^ PublishRequestJSonAsync(
	TheMessageAddress^ originator, 
	TheMessageAddress^ target, 
	inputT messageParameters
)

Type Parameters

inputT
outputT

Parameters

originator
Type: nsCDEngine.Communication..::..TheMessageAddress
Thing or engine to use for response messages. If NULL defaults to ContentService.
target
Type: nsCDEngine.Communication..::..TheMessageAddress
Thing or engine to which the message is to be sent.
messageParameters
Type: inputT
The object to send as the payload of the message.

Return Value