Skip to content

Commit

Permalink
Fix for #3091 now using indexer which overwrites the current value if…
Browse files Browse the repository at this point in the history
… 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 dbf32d2 commit 2595bef
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,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 2595bef

Please sign in to comment.