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