Skip to content

Commit

Permalink
In case of a header with a valu of tpe System.Guid, the untyped value…
Browse files Browse the repository at this point in the history
… cannot cast to a string. When resubmitting a message (for example from a deadletterqueue to the original queue) the heeaders of type Guid are ignored.
  • Loading branch information
BastiaanLouis committed Jan 5, 2017
1 parent ef8eaa9 commit 1f4a3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helpers/ConversionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static object MapStringTypeToCLRType(string type, object value)
case "Decimal":
return Convert.ChangeType(value, typeof(decimal));
case "Guid":
return new Guid(value as string);
return new Guid(value.ToString());
}
throw new NotSupportedException(string.Format(TypeNotSupported, type));
}
Expand Down

0 comments on commit 1f4a3b1

Please sign in to comment.