Skip to content

Commit

Permalink
Fix for #3091
Browse files Browse the repository at this point in the history
Now using indexer which overwrites the current value if already present. Not moved to constructor due to documentation OutgoingHeaders property "This value will be cleared when a thread receives a message.
  • Loading branch information
ramonsmits committed Nov 24, 2015
1 parent e825e35 commit 5009fec
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,7 @@ private string DecryptUsingKeyIdentifier(EncryptedValue encryptedValue, string k

protected virtual void AddKeyIdentifierHeader()
{
var headers = Bus.OutgoingHeaders;
if (!headers.ContainsKey(Headers.RijndaelKeyIdentifier))
{
headers.Add(Headers.RijndaelKeyIdentifier, EncryptionKeyIdentifier);
}
Bus.OutgoingHeaders[Headers.RijndaelKeyIdentifier] = EncryptionKeyIdentifier;
}

protected virtual bool TryGetKeyIdentifierHeader(out string keyIdentifier)
Expand Down

0 comments on commit 5009fec

Please sign in to comment.