private SignalRConnectionInfo GetClientConnectionInfo(SignalRConnectionInfoAttribute attribute)
        {
            var signalR = new AzureSignalRClient(attribute.ConnectionStringSetting, httpClient);
            var claims  = attribute.GetClaims();

            return(signalR.GetClientConnectionInfo(attribute.HubName, claims));
        }
Example #2
0
 private void ValidateSignalRConnectionInfoAttributeBinding(SignalRConnectionInfoAttribute attribute, Type type)
 {
     ValidateConnectionString(
         attribute.ConnectionStringSetting,
         $"{nameof(SignalRConnectionInfoAttribute)}.{nameof(SignalRConnectionInfoAttribute.ConnectionStringSetting)}");
 }
        private SignalRConnectionInfo GetClientConnectionInfo(SignalRConnectionInfoAttribute attribute)
        {
            var client = GetAzureSignalRClient(attribute.ConnectionStringSetting, attribute.HubName);

            return(client.GetClientConnectionInfo(attribute.UserId, attribute.IdToken, attribute.ClaimTypeList));
        }
        private AzureSignalRConnectionInfo GetConnectionInfo(SignalRConnectionInfoAttribute attribute)
        {
            var signalR = new AzureSignalR(attribute.ConnectionStringSetting);

            return(signalR.GetClientConnectionInfo(attribute.HubName));
        }
Example #5
0
        private SignalRConnectionInfo GetClientConnectionInfo(SignalRConnectionInfoAttribute attribute)
        {
            var signalR = new AzureSignalRClient(StaticServiceHubContextStore.ServiceHubContextStore, serviceManager);

            return(signalR.GetClientConnectionInfo(attribute.HubName, attribute.UserId, attribute.IdToken, attribute.ClaimTypeList));
        }
Example #6
0
        private SignalRConnectionInfo GetClientConnectionInfo(SignalRConnectionInfoAttribute attribute)
        {
            var signalR = new AzureSignalRClient(attribute.ConnectionStringSetting, httpClientFactory.CreateClient());

            return(signalR.GetClientConnectionInfo(attribute.HubName));
        }