diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-07-25 22:33:11 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-07-25 22:33:11 -0400 |
| commit | 97ee9fed14e3b5d76805cd79d4378c0b71c0abd9 (patch) | |
| tree | a3814b4c22029b139cb5dd599121aa356180523a /MediaBrowser.Common/Configuration | |
| parent | 84af205572e6ab9ca3e10f6de33cbce278e01335 (diff) | |
Switched to MEF as a means to locate plugins and resolvers
Diffstat (limited to 'MediaBrowser.Common/Configuration')
| -rw-r--r-- | MediaBrowser.Common/Configuration/ConfigurationController.cs | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/MediaBrowser.Common/Configuration/ConfigurationController.cs b/MediaBrowser.Common/Configuration/ConfigurationController.cs deleted file mode 100644 index 547d195f5a..0000000000 --- a/MediaBrowser.Common/Configuration/ConfigurationController.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.IO;
-using MediaBrowser.Common.Json;
-
-namespace MediaBrowser.Common.Configuration
-{
- public class ConfigurationController<TConfigurationType>
- where TConfigurationType : BaseConfiguration, new ()
- {
- /// <summary>
- /// The path to the configuration file
- /// </summary>
- public string Path { get; set; }
-
- public TConfigurationType Configuration { get; set; }
-
- public void Reload()
- {
- if (!File.Exists(Path))
- {
- Configuration = new TConfigurationType();
- }
- else
- {
- Configuration = JsonSerializer.DeserializeFromFile<TConfigurationType>(Path);
- }
- }
-
- public void Save()
- {
- }
- }
-}
|
