예제 #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);
     }
 }
예제 #2
0
        public static LiveChannelSettings GetConfig()
        {
            LiveChannelSettings settings = (LiveChannelSettings)ConfigurationBroker.GetSection("liveChannelSettings");

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

            return settings;
        }
예제 #3
0
        public static LiveChannelSettings GetConfig()
        {
            LiveChannelSettings settings = (LiveChannelSettings)ConfigurationBroker.GetSection("liveChannelSettings");

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

            return(settings);
        }