Click or drag to resize

MessageQueueFactoryGetJsonMessageBody Method

Create a standardize message body for the message queue communication.

Namespace:  AskiaPortalCmn
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
public static string GetJsonMessageBody(
	IContext context,
	string message,
	IDictionary<string, Object> headers
)

Parameters

context
Type: AskiaPortalCmnIContext
Context of execution (also send in the message)
message
Type: SystemString
Body of the message.
headers
Type: System.Collections.GenericIDictionaryString, Object
A list of KeyValue pairs with some metadata. Ex: (entity, survery), (action, publish).

Return Value

Type: String
Message to send in the queue.
See Also