drub0y / Obvs.AzureServiceBus

Microsoft Azure ServiceBus transport support for the Obvs framework.
MIT License
5 stars 9 forks source link

Fixing bug wher getting outgoing message properties would result in NRE #18

Closed drub0y closed 8 years ago

drub0y commented 8 years ago

The root of the problem was that DefaultMessageBrokeredTable::GetBrokeredMessageForMessage was only returning already registered BrokeredMessage instances and, if there wasn't one, it would just return null because it was only using TryGetValue. Now using GetOrCreate instead so that the first request to get a BrokeredMessage will create it.