상속: global::System.Configuration.ApplicationSettingsBase
예제 #1
0
        /// <summary>
        /// Manages which base url gets returned based on user settings.
        /// </summary>
        /// <param name="userSettings">user settings</param>
        /// <returns>returns base url in string form</returns>
        internal static string GetEndpointBase(GbdxSettings.Properties.Settings userSettings)
        {
            if (string.IsNullOrEmpty(userSettings.baseUrl))
            {
                return(userSettings.DefaultBaseUrl);
            }

            return(userSettings.baseUrl);
        }
예제 #2
0
        /// <summary>
        /// Manages which authentication endpoint gets returned based on user settings
        /// </summary>
        /// <param name="userSettings">user settings</param>
        /// <returns>authentication endpoint in string form</returns>
        internal static string GetAuthenticationEndpoint(GbdxSettings.Properties.Settings userSettings)
        {
            if (string.IsNullOrEmpty(userSettings.baseUrl))
            {
                return(userSettings.authenticationServer);
            }

            return(userSettings.authenticationServer);
        }