Exemplo n.º 1
0
        void InitializeHeaders()
        {
            var parsedHeaders = string.IsNullOrEmpty(originalHeaders)
                ? new Dictionary <string, string>()
                : DictionarySerializer.DeSerialize(originalHeaders);

            LegacyCallbacks.SubstituteReplyToWithCallbackQueueIfExists(parsedHeaders);

            Headers = parsedHeaders;
        }
        void InitializeHeaders()
        {
            var parsedHeaders = string.IsNullOrEmpty(originalHeaders)
                ? new Dictionary <string, string>()
                : DictionarySerializer.DeSerialize(originalHeaders);

            if (!string.IsNullOrEmpty(replyToAddress))
            {
                parsedHeaders[NServiceBus.Headers.ReplyToAddress] = replyToAddress;
            }

            LegacyCallbacks.SubstituteReplyToWithCallbackQueueIfExists(parsedHeaders);

            Headers = parsedHeaders;
        }