Example #1
0
        private static void LoadBaseUrl(HelpProvider.HelpAppName appName)
        {
            switch (appName)
            {
            case HelpProvider.HelpAppName.Ecp:
            case HelpProvider.HelpAppName.Owa:
            case HelpProvider.HelpAppName.TenantMonitoring:
                HelpProvider.LoadBaseUrlViaADSession(appName);
                goto IL_52;

            case HelpProvider.HelpAppName.Setup:
                HelpProvider.LoadSetupBaseUrlFromRegistry();
                goto IL_52;

            case HelpProvider.HelpAppName.Bpa:
                HelpProvider.LoadBpaBaseUrlFromRegistry();
                goto IL_52;

            case HelpProvider.HelpAppName.Compliance:
                HelpProvider.LoadComplianceBaseUrl();
                goto IL_52;
            }
            throw new InvalidOperationException("appName is not a valid HelpAppName enum. Check caller of Initialize how we get this value.");
IL_52:
            HelpProvider.callingAppName = appName;
        }