arcus-azure/arcus.messaging

Simplify EventHubs message context retrieval

stijnmoreels opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
Currently, one has to create the AzureEventHubsMessageContext themselves with a factory method. This often results in explicit code and unnecessary exposure of boilerplate types.

Describe the solution you'd like
Usability can be improved if we hide this creation behind an .GetMessageContext() extension on the EventData like we do with Service Bus-related types.