Closed jhuggart closed 6 years ago
Updated based on your feedback @atheken
@jhuggart Just FYI:
https://github.com/wildbit/postmark-dotnet/pull/64/commits/ba054f03cfd3e4728eb72689a82620a30051e9ca
If you look at how the metadata query is constructed, we should prefer passing a dictionary to the HttpClient and allowing it to construct the query parameters, as opposed to building these ourselves.
The main reason for this is that the HttpClient will properly URL-encode the query-string parameters for us, which may include stuff like &
, :
, /
, etc.
This adds the Metadata property to PostmarkMessage to allow sending messages with metadata. Also, GetOutboundMessagesAsync now has an optional argument for searching on metadata.