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

[FeatureRequest] SignalR extensions for V2 programming model #1410

Closed
Y-Sindo opened this issue Jan 29, 2024 · 2 comments
Closed

[FeatureRequest] SignalR extensions for V2 programming model #1410

Y-Sindo opened this issue Jan 29, 2024 · 2 comments

Comments

@Y-Sindo
Copy link
Member

Y-Sindo commented Jan 29, 2024

Seems SignalR extensions are not supported in V2 programming model. They are not listed here: https://learn.microsoft.com/en-us/python/api/azure-functions/azure.functions?view=azure-python

Is there a generic binding to support SignalR? Or is there any plan to add SignalR extensions to V2 programming model? If there is no plan now, can our Azure SignalR service product team add the SignalR extensions on our own? Do we have any onboarding guidance for the service team?

@YunchuWang
Copy link
Contributor

YunchuWang commented Mar 11, 2024

@Y-Sindo thanks for raising the request! Yes generic bindings are supported as shown in the sample below:

@app.function_name(name="return_not_processed_last")
@app.generic_trigger(arg_name="req", type="httpTrigger",
                     route="return_not_processed_last")
@app.generic_output_binding(arg_name="$return", type="http")
@app.generic_input_binding(
    arg_name="testEntities",
    type="table",
    connection="AzureWebJobsStorage",
    table_name="EventHubBatchTest")
def return_not_processed_last(req: func.HttpRequest, testEntities):
    return func.HttpResponse(status_code=200)

To officially support SignalR, service teams can feel free to open a pr referencing Azure/azure-functions-python-library#181.

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

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

No branches or pull requests

2 participants