public HubServerConfig(string url, int timeout, HubCredentials hubCredentials, HubProxyInfo hubProxyInfo)
 {
     Url            = url;
     Timeout        = timeout;
     HubCredentials = hubCredentials;
     HubProxyInfo   = HubProxyInfo;
 }
Beispiel #2
0
        public HubServerConfig BuildHubServerConfig()
        {
            HubCredentials  credentials      = new HubCredentials(HubUsername, HubPassword);
            HubCredentials  proxyCredentials = new HubCredentials(HubProxyUsername, HubProxyPassword);
            HubProxyInfo    proxyInfo        = new HubProxyInfo(HubProxyHost, HubProxyPort, proxyCredentials);
            HubServerConfig hubServerConfig  = new HubServerConfig(HubUrl, HubTimeout, credentials, proxyInfo);

            return(hubServerConfig);
        }