/// <summary> /// Gets the application settings. /// </summary> /// <param name="plugin">The plugin.</param> /// <param name="appSettingKey">The application setting key.</param> /// <returns></returns> public static string GetAppSettings(this PluginBase plugin, string appSettingKey) { Configuration config = plugin.GetConfig(); KeyValueConfigurationElement configItem = config.AppSettings.Settings[appSettingKey]; if (configItem == null) { return(null); } return(configItem.Value); }
public static void ConfigureLog4Net(this PluginBase plugin) { log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(plugin.GetConfig().FilePath)); }