private WebPubSubConnection GetClientConnection(WebPubSubConnectionAttribute attribute)
        {
            var hub     = Utilities.FirstOrDefault(attribute.Hub, _options.Hub);
            var service = new WebPubSubService(attribute.ConnectionStringSetting, hub);

            return(service.GetClientConnection(attribute.UserId));
        }
 private void ValidateWebPubSubConnectionAttributeBinding(WebPubSubConnectionAttribute attribute, Type type)
 {
     ValidateConnectionString(
         attribute.ConnectionStringSetting,
         $"{nameof(WebPubSubConnectionAttribute)}.{nameof(WebPubSubConnectionAttribute.ConnectionStringSetting)}");
 }