arcus-azure / arcus.eventgrid

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

`EventGridParser` only allows array of events #106

Closed stijnmoreels closed 4 years ago

stijnmoreels commented 4 years ago

What feature would you like to have? In a previous discussion, I pointed out that the EventGridParser only allows a set of events to be parsed and not a single event. It was then discarded because the EventGrid resource will only send out array of events.

Is your feature request related to a problem? Please describe. When implementating the background job to receive CloudEvents however, the event received is a single cloud event (not serialized as an array).

This results in a deserialization failure because we're trying to deserialize an array from a single entry.

Additional context https://github.com/arcus-azure/arcus.webapi/issues/96

Proposal Allow both single and many events be parsed by the EventGridParser.

tomkerkhove commented 4 years ago

Looks like this one is top prio

stijnmoreels commented 4 years ago

Yes and is fixed in open PR #112 .