Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add SignalR binding #41

Closed
StickNitro opened this issue Feb 20, 2019 · 2 comments
Closed

How to add SignalR binding #41

StickNitro opened this issue Feb 20, 2019 · 2 comments

Comments

@StickNitro
Copy link

Thanks for the framework, love and keep up the good work.

I have a question though about how to add SignalR input binding to a function, for example if I create a standard function I can add [SignalR(HubName = "assessments")] IAsyncCollector<SignalRMessage> signalRMessages in the function which then allows me to send events using WebSockets

I cannot seem to find a way to do this with FunctionMonkey, if I add this to the ExecuteAsync method I get a compile error

@JamesRandall
Copy link
Owner

At the moment SignalR bindings aren't supported in FunctionMonkey - however you can happily drop a "normal" SignalR function into the same codebase. If you want to structure one like the Function Monkey trigger functions (and use the commanding pattern) then their is a method OutputAuthoredSource on the builder that will spit out the generated C# code to a path and you can use that to base a new Function on quite straightforwardly.

I will look to add SignalR bindings in the future!

@JamesRandall
Copy link
Owner

I've added an enhancement issue for this. #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants