Example #1
0
 private static void OutputAccountSettings(MediaServiceAccountSettings settings)
 {
     foreach (MediaServiceAccountConfigurationElement element in settings.Accounts)
     {
         Console.WriteLine("Account Name: {0}, Account Key: {1}",
             element.Name, element.AccountKey);
     }
 }
        public static MediaServiceAccountSettings GetConfig()
        {
            MediaServiceAccountSettings settings = (MediaServiceAccountSettings)ConfigurationBroker.GetSection("mediaServiceAccountSettings");

            if (settings == null)
                settings = new MediaServiceAccountSettings();

            return settings;
        }
        public static MediaServiceAccountSettings GetConfig()
        {
            MediaServiceAccountSettings settings = (MediaServiceAccountSettings)ConfigurationBroker.GetSection("mediaServiceAccountSettings");

            if (settings == null)
            {
                settings = new MediaServiceAccountSettings();
            }

            return(settings);
        }