Comments (2)
Ok. That makes sense. I will give it a shot with the JObject. Assuming that works, I will come back and close this out. Thanks!
from azure-functions-eventgrid-extension.
This is an understandable confusion. Here's the answer and then some history. In short with v1 functions and event grid the best option is to bind to JObject
as the v1 runtime comes with its own version of EventGridEvent
which is different from Microsoft.Azure.EventGrid.Models.EventGridEvent
. Once inside the execution you should be able to convert the JObject
to an EventGrid.Models.EventGridEvent
I believe - but you will likely need to reference via the full namespace path as will be two instances of EventGridEvent
classes.
The history is because when we first launched the Event Grid trigger there was no Event Grid SDK so we built our own model. A few months later they launched the event grid SDK. However one of the downsides of the v1 runtime is we can't do breaking changes without breaking existing apps as extensions ship with the host. So we decided not to update v1 to support the EventGrid.Models.EventGrid as it would break previously bulit apps. For v2 though we do have flexibility to version so v2 apps will use the SDK.
It shouldn't have any negative effects - it's just how the message gets serialized into your function. The only downside as mentioned is if you do try to use the EventGrid SDK you may have two EventGridEvent
classes so you will need to specify exactly which one you intend -- and the EventGrid SDK one can't be used as the trigger type.
Hopefully that makes some sense
from azure-functions-eventgrid-extension.
Related Issues (20)
- Is there a way to configure EventGridTrigger locally to use hybrid relay endpoint? HOT 2
- Event Grid not delivery storage blob create events to function app running in Azure HOT 1
- This repo is missing important files HOT 1
- Add authorization level to EventGridTrigger HOT 1
- EventGrid Trigger function returns Error: connect ECONNREFUSED 127.0.0.1:7071 when debugged locally HOT 1
- CloudEvent schema not working for EventGridTrigger HOT 1
- Event grid messages get instantly dropped while function app is stopped
- How is Event Grid Triggered For Batched Messaging (Azure Functions)
- Retry and DeadLettering Handling for eventGridTrigger functions
- CloudEvents schema in Python functions
- EventGrid to Azure Function
- Input binding for Event Grid does not work for out of proc languages HOT 1
- Azure Functions broken for NetCore3.1 HOT 5
- EventGrid Output binding error after converting to .net core 3.1 HOT 6
- We need to support the newer cloud event HOT 5
- Event Grid Trigger missing direction in function.json HOT 3
- EventGrid trigger throwing MethodNotImplemented exception. HOT 1
- Provide support for CloudEvents 1.0 HOT 2
- How to deploy a multi-region / DR configuration
- Extension does not await batch execution and can cause deadlocks/failed deliveries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-eventgrid-extension.