public MessageImpl(T message, IDictionary <string, string> headers) { Body = message; _headers = new DictionaryHeaders(headers); _headers[HeaderKey.BodyType] = MessageUrn <T> .UrnString; }
public MessageImpl(T message) { Body = message; _headers = new DictionaryHeaders(); _headers[HeaderKey.BodyType] = MessageUrn <T> .UrnString; }