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
)
Public Shared Function GetJsonMessageBody (
context As IContext,
message As String,
headers As IDictionary(Of String, Object)
) As String
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:
StringMessage to send in the queue.
See Also