Class IbmMqMessageHelper
Helpers for IBM MQ message body extraction, MQMD→headers mapping, and exchange→MQMessage building.
public static class IbmMqMessageHelper
Inheritance
Methods
BuildOutgoingMessage(IExchange, IbmMqEndpointOptions, IHeaderFilterStrategy)
Builds an from an exchange for sending; headerFilter decides which
public static MQMessage BuildOutgoingMessage(IExchange exchange, IbmMqEndpointOptions options, IHeaderFilterStrategy headerFilter)
ContentTypeToFormat(string?)
Maps a MIME content type to the best MQMD Format.
public static string ContentTypeToFormat(string? contentType)
CopyHeadersToRfh2(MQMessage, IMessage, IHeaderFilterStrategy, IExchange)
Copies the headers of a route message that headerFilter lets out into the MQ message's RFH2
public static void CopyHeadersToRfh2(MQMessage mqMsg, IMessage routeMsg, IHeaderFilterStrategy headerFilter, IExchange exchange)
CopyMqmdToHeaders(MQMessage, Message, string, string)
Copies MQMD fields into redb.Route message headers with redbIbmMq.* prefix.
public static void CopyMqmdToHeaders(MQMessage mqMsg, Message routeMsg, string destination, string queueManager)
CopyRfh2UserProperties(MQMessage, Message, IHeaderFilterStrategy, IExchange)
Copies RFH2 user properties (if present) that headerFilter lets in into exchange headers;
public static void CopyRfh2UserProperties(MQMessage mqMsg, Message routeMsg, IHeaderFilterStrategy headerFilter, IExchange exchange)
ExtractBody(MQMessage)
Extracts the body from an as a string or byte[].
public static object ExtractBody(MQMessage msg)
FormatToContentType(string?)
Maps MQMD Format to a MIME content type.
public static string? FormatToContentType(string? format)