Exemplo n.º 1
0
 private static void OutputChannelSettings(LiveChannelSettings settings)
 {
     foreach (LiveChannelConfigurationElement element in settings.Channels)
     {
         Console.WriteLine("Channel Name: {0}, Account Name: {1}",
             element.ChannelName, element.Name);
     }
 }
Exemplo n.º 2
0
        public static LiveChannelSettings GetConfig()
        {
            LiveChannelSettings settings = (LiveChannelSettings)ConfigurationBroker.GetSection("liveChannelSettings");

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

            return settings;
        }
Exemplo n.º 3
0
        public static LiveChannelSettings GetConfig()
        {
            LiveChannelSettings settings = (LiveChannelSettings)ConfigurationBroker.GetSection("liveChannelSettings");

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

            return(settings);
        }