Giter Club home page Giter Club logo

Comments (7)

github-actions avatar github-actions commented on June 16, 2024

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @chenkennt @sffamily @Y-Sindo.

from azure-sdk-for-net.

Y-Sindo avatar Y-Sindo commented on June 16, 2024

Now serverless hub is supported in isolated-process model. See https://github.com/aspnet/AzureSignalR-samples/tree/main/samples/DotnetIsolated-ClassBased for a sample. We are updating the docs.

from azure-sdk-for-net.

michaeldaw avatar michaeldaw commented on June 16, 2024

Thank you for the reply. I've switched to the class-based approach in the sample and it seems to be working.

One thing I wanted to mention:
If you add an HTTP trigger to your function using Visual Studio, a reference to Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore will be added to the project. It doesn't seem to be needed, but from what I can tell in my testing, if this package is present, the following error occurs when attempting to call "ConfigureFunctionWorkerDefaults":

The registration for method 'ConfigureFunctionsWebApplication' is expected for ASP.NET Core Integration.

The error goes away if ConfigureFunctionsWebApplication is added to the application, but if this is done, the Function App seems to no longer expose the endpoint /runtime/webhooks/signalr, which is needed for the connection to the Azure SignalR server.
Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore isn't actually needed to run HTTP triggers, so removing it is fine and everything seems to work. I'm just concerned that others may run into this and have a difficult time figuring it out.

This explanation probably sounds a little convoluted. If I can provide more information, please let me know.

Thanks again for the reply.

from azure-sdk-for-net.

Y-Sindo avatar Y-Sindo commented on June 16, 2024

@jsquire Could you help route the question about HTTP trigger in dotnet isolated process to related team?

Thank you for the reply. I've switched to the class-based approach in the sample and it seems to be working.

One thing I wanted to mention: If you add an HTTP trigger to your function using Visual Studio, a reference to Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore will be added to the project. It doesn't seem to be needed, but from what I can tell in my testing, if this package is present, the following error occurs when attempting to call "ConfigureFunctionWorkerDefaults":

The registration for method 'ConfigureFunctionsWebApplication' is expected for ASP.NET Core Integration.

The error goes away if ConfigureFunctionsWebApplication is added to the application, but if this is done, the Function App seems to no longer expose the endpoint /runtime/webhooks/signalr, which is needed for the connection to the Azure SignalR server. Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore isn't actually needed to run HTTP triggers, so removing it is fine and everything seems to work. I'm just concerned that others may run into this and have a difficult time figuring it out.

This explanation probably sounds a little convoluted. If I can provide more information, please let me know.

Thanks again for the reply.

from azure-sdk-for-net.

jsquire avatar jsquire commented on June 16, 2024

@jsquire Could you help route the question about HTTP trigger in dotnet isolated process to related team?

@michaeldaw: For discussion of the HTTP trigger in an isolated process, you'd want to open an issue with your inquiry in the azure-functions-dotnet-worker repository or open an Azure support request.

from azure-sdk-for-net.

github-actions avatar github-actions commented on June 16, 2024

Hi @michaeldaw. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

from azure-sdk-for-net.

michaeldaw avatar michaeldaw commented on June 16, 2024

@jsquire Will do, thank you.

from azure-sdk-for-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.