arcus-azure / arcus.eventgrid

Azure Event Grid development in a breeze
https://eventgrid.arcus-azure.net/
MIT License
17 stars 6 forks source link

Serializing abstracted `Event` fails with stack overflow bc calls itself #200

Closed stijnmoreels closed 2 years ago

stijnmoreels commented 2 years ago

Describe the bug When serializing the abstracted Event class, we have a stack overflow failure. We should, in fact, not serialize it from the abstracted class, but more from a concrete class (like EventGridEvent or CloudEvents).

To Reproduce Load into an Event via the EventParser, try to serialize it.

Expected behavior We should remove this serialization option in the abstracted Event. We use separate serializers in the event publishing.

Additional context