Azure / azure-functions-signalrservice-extension

Azure Functions bindings for SignalR Service. Project moved to https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService .
MIT License
96 stars 48 forks source link

Allow ability to grab the hub name from configuration #177

Closed ianmccaul closed 3 years ago

ianmccaul commented 3 years ago

Would love to ability to be able to configure the hub name based on environment variables. This would allow us to use a single signalr service as a host for multiple hubs in an environment. Right now its just a constant string passed in.

anthonychu commented 3 years ago

You should be able to use the %VARIABLE_NAME% syntax to do this. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-expressions-patterns#binding-expressions---app-settings

Y-Sindo commented 3 years ago

Since 1.3.0, we should be able to AutoResolve hub name in SignalR trigger binding. Other binding should always work.