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
97 stars 46 forks source link

Support reading identity-based `ServiceEndpoint` from `Configuration` #265

Closed Y-Sindo closed 2 years ago

Y-Sindo commented 2 years ago

By default, we allow two styles to configure identity-based ServiceEndpoint: named endpoint and nameless endpoint. The key of nameless endpoint reuses ConnectionStringSetting. The key of named endpoints is "Azure:SignalR:Endpoints". The following is a sample.

{
    "AzureSignalRConnectionString": {
        "serviceUri": "https://{SignalRHost}"
    },
    "Azure": {
        "SignalR": {
            "Endpoints": {
                "eastUs": {
                    "serviceUri": "https://{SignalRHost}"
                },
                "westUs": {
                    "serviceUri": "https://{SignalRHost}"
                }
            }
        }
    }
}