arcus-azure / arcus.eventgrid

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

PublishRawAsync should allow you to choose between Event Grid & CloudEvents #117

Closed tomkerkhove closed 4 years ago

tomkerkhove commented 4 years ago

PublishRawAsync should allow you to choose between Event Grid & CloudEvents which is not the case today where it assumes Event Grid format.

Flurl.Http: Call failed with status code 415 (The Content-Type header is either missing or it doesn't have a valid value. The content type header must either be application/cloudevents+json; charset=utf-8 or application/cloudevents-batch+json; charset=UTF-8.

stijnmoreels commented 4 years ago

It's also somewhat related to the issue I mentioned in #112 that the Event Grid event and CloudEvent is not isomorphic and that if we would remove all reference to the concrete event type, we would lose information and possible have corrupt events.

It's related to this, because the abstracted event will need to be serialized when publishing events. This issue is I think not only about publishing raw events but about publishing every type of events bc (like you said) the abstracted event is not either concrete event type.

tomkerkhove commented 4 years ago

I don't see how these are related - You are publishing raw events here and as a publisher you'd want to have the choice on how to publish depending on your Event Grid topic.