public AzureSignalRClient(string connectionString)
        {
            ValueTuple <string, string, string> connectionString1 = AzureSignalRClient.ParseConnectionString(connectionString);

            this.BaseEndpoint = connectionString1.Item1;
            this.AccessKey    = connectionString1.Item2;
            string str;

            this.Version = str = connectionString1.Item3;
        }
        public static SignalRConnectionInfo Run(
            [HttpTrigger(AuthorizationLevel.Anonymous, "get")] HttpRequest req,
            [SignalRConnectionInfo(HubName = "chat", ConnectionStringSetting = "AzureSignalRConnectionString")] SignalRConnectionInfo connectionInfo, ILogger log)
        {
            log.LogInformation(req.Headers["x-ms-client-principal-id"].FirstOrDefault());
            AzureSignalRClient    client = new AzureSignalRClient(Environment.GetEnvironmentVariable("AzureSignalRConnectionString"));
            SignalRConnectionInfo info   = client.GetClientConnectionInfo("chat");

            return(connectionInfo);
        }