Equivalent of StaticServiceHubContextStore in Isolated function app

Muralidharan Deenathayalan 41 Reputation points
2024-01-02T10:30:20.5866667+00:00

Hello,

I hope you are doing well. We have been using the StaticServiceHubContextStore class in in-proc Azure functions, and it works fine. Recently, we decided to switch to the Isolated function app, and we would like to know the equivalent class for 'StaticServiceHubContextStore' in the Isolated function app.

Kindly assist us with any relevant documentation links.

Thank you, Murali.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,936 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2024-01-02T16:01:51.74+00:00

    Muralidharan Deenathayalan Thanks for posting your question in Microsoft Q&A. StaticServiceHubContextStore is part of Microsoft.Azure.WebJobs.Extensions.SignalRService which is only used in In-Process model. However, in isolated model, you use Worker.Extensions.SignalRService and full implementation including ServerlessHub, InvocationContext etc. can be found here and refer to doc: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-signalr-service-output?tabs=isolated-process&pivots=programming-language-csharp for sending messages or broad a message to all connected clients. Check out SignalR samples for full sample code for different scenarios.

    If you are looking for similar experience to in-process, consider ServerlessHub with a class-based model approach.

    I hope this helps and feel free to reach out if any questions.


    If you found the answer to your question helpful, please take a moment to mark it as Yes for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.