JamesRandall / FunctionMonkey

Write more elegant Azure Functions with less boilerplate, more consistency, and support for REST APIs. Docs can be found at https://functionmonkey.azurefromthetrenches.com
MIT License
293 stars 49 forks source link

Feature Request | Event Grid Triggers #112

Open robcwaldron opened 4 years ago

robcwaldron commented 4 years ago

I'm not sure about the effort involved, but it would be great to integrate with Event Grid too like Event Hubs. A simple use case is to integrate with Azure SignalR, like here: https://devblogs.microsoft.com/aspnet/azure-signalr-service-now-supports-event-grid/

mdg215199 commented 4 years ago

I'll test this later, but I believe you can set signalr to a service bus end point (within signalr in the portal, then click events, then you can choose service bus). From there, you can receive the requests.

That said, will double check on this. I'm already using signalr and service bus in order to receive/send messages. I'll check on the connect/disconnect (as well as the event binding in the portal I mentioned above works)

mdg215199 commented 4 years ago

Also, @robcwaldron I agree, in general, would be good to have the event grid as an option in communication.

JamesRandall commented 4 years ago

Its definitely on my list of things to do - it shouldn't be hard to add. Just a new set of templates and assembly references in Roslyn.