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

Support multiple Azure SignalR endpoints #155

Closed Y-Sindo closed 3 years ago

Y-Sindo commented 3 years ago

Interface changes

  1. ServerlessHub

    • Add HttpContext parameter to negotiate function.

    • Add async negotiate function

  2. Configuration

    • Support multiple endpoints configuration in the form consistent with Server SDK, see document.

      AzureSignalRConnectionString =  ConnectionString0
      AzureSignalRConnectionString:east-region-a = <ConnectionString1>
      AzureSignalRConnectionString:backup:secondary = <ConnectionString3>
  3. Router customization. Users are allowed to add customized IEndpointRouter via C#.

        public class Startup : FunctionsStartup
        {
            public override void Configure(IFunctionsHostBuilder builder)
            {
                builder.Services.AddSingleton<IEndpointRouter,CustomizedRouter>();
            }
        }
JialinXin commented 3 years ago

Add tests for using multiple endpoints?