Esempio n. 1
0
        internal static InternalConnectivityMode GetInternalConnectivityMode(ConnectivitySettings connectivitySettings, HttpConnectivitySettings httpConnectivitySettings, Uri uri)
        {
            if (connectivitySettings == null && httpConnectivitySettings == null && ServiceBusEnvironment.SystemConnectivity.Mode == ConnectivityMode.AutoDetect && ConnectivityModeHelper.OverrideInternalConnectivityMode.HasValue)
            {
                return(ConnectivityModeHelper.OverrideInternalConnectivityMode.Value);
            }
            ConnectivityMode connectivityMode = (connectivitySettings != null ? connectivitySettings.Mode : ServiceBusEnvironment.SystemConnectivity.Mode);

            return(ConnectivityModeHelper.GetInternalConnectivityMode(connectivityMode, (httpConnectivitySettings != null ? httpConnectivitySettings.Mode : HttpConnectivityMode.AutoDetect), uri));
        }
Esempio n. 2
0
 internal InternalConnectivityMode GetInternalConnectivityMode(Uri uri)
 {
     return(ConnectivityModeHelper.GetInternalConnectivityMode(this.connectivitySettings, this.httpConnectivitySettings, uri));
 }