diff options
| author | stefan <stefan@hegedues.at> | 2018-09-12 19:26:21 +0200 |
|---|---|---|
| committer | stefan <stefan@hegedues.at> | 2018-09-12 19:26:21 +0200 |
| commit | 48facb797ed912e4ea6b04b17d1ff190ac2daac4 (patch) | |
| tree | 8dae77a31670a888d733484cb17dd4077d5444e8 /MediaBrowser.Common/Configuration/IConfigurationManager.cs | |
| parent | c32d8656382a0eacb301692e0084377fc433ae9b (diff) | |
Update to 3.5.2 and .net core 2.1
Diffstat (limited to 'MediaBrowser.Common/Configuration/IConfigurationManager.cs')
| -rw-r--r-- | MediaBrowser.Common/Configuration/IConfigurationManager.cs | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/MediaBrowser.Common/Configuration/IConfigurationManager.cs b/MediaBrowser.Common/Configuration/IConfigurationManager.cs deleted file mode 100644 index d826a3ee7..000000000 --- a/MediaBrowser.Common/Configuration/IConfigurationManager.cs +++ /dev/null @@ -1,82 +0,0 @@ -using MediaBrowser.Model.Configuration; -using System; -using System.Collections.Generic; - -namespace MediaBrowser.Common.Configuration -{ - public interface IConfigurationManager - { - /// <summary> - /// Occurs when [configuration updating]. - /// </summary> - event EventHandler<ConfigurationUpdateEventArgs> NamedConfigurationUpdating; - - /// <summary> - /// Occurs when [configuration updated]. - /// </summary> - event EventHandler<EventArgs> ConfigurationUpdated; - - /// <summary> - /// Occurs when [named configuration updated]. - /// </summary> - event EventHandler<ConfigurationUpdateEventArgs> NamedConfigurationUpdated; - - /// <summary> - /// Gets or sets the application paths. - /// </summary> - /// <value>The application paths.</value> - IApplicationPaths CommonApplicationPaths { get; } - - /// <summary> - /// Gets the configuration. - /// </summary> - /// <value>The configuration.</value> - BaseApplicationConfiguration CommonConfiguration { get; } - - /// <summary> - /// Saves the configuration. - /// </summary> - void SaveConfiguration(); - - /// <summary> - /// Replaces the configuration. - /// </summary> - /// <param name="newConfiguration">The new configuration.</param> - void ReplaceConfiguration(BaseApplicationConfiguration newConfiguration); - - /// <summary> - /// Gets the configuration. - /// </summary> - /// <param name="key">The key.</param> - /// <returns>System.Object.</returns> - object GetConfiguration(string key); - - /// <summary> - /// Gets the type of the configuration. - /// </summary> - /// <param name="key">The key.</param> - /// <returns>Type.</returns> - Type GetConfigurationType(string key); - - /// <summary> - /// Saves the configuration. - /// </summary> - /// <param name="key">The key.</param> - /// <param name="configuration">The configuration.</param> - void SaveConfiguration(string key, object configuration); - - /// <summary> - /// Adds the parts. - /// </summary> - /// <param name="factories">The factories.</param> - void AddParts(IEnumerable<IConfigurationFactory> factories); - } - - public static class ConfigurationManagerExtensions - { - public static T GetConfiguration<T>(this IConfigurationManager manager, string key) - { - return (T)manager.GetConfiguration(key); - } - } -} |
