aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Sync/SyncConfig.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-02-09 16:58:30 -0500
committerLuke <luke.pulverenti@gmail.com>2015-02-09 16:58:30 -0500
commit4cc3b2f0ccd7c092a4acf72db4903415e175037a (patch)
treef9f90f8665b726253b8b357674f2f141aa43abc9 /MediaBrowser.Server.Implementations/Sync/SyncConfig.cs
parente7037a9b80843c127712f11430239f8fa3cb4aed (diff)
parent3d7089a7dbabb652730c892206ca050f52f832b1 (diff)
Merge pull request #1005 from MediaBrowser/dev
3.0.5518.0
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sync/SyncConfig.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Sync/SyncConfig.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Sync/SyncConfig.cs b/MediaBrowser.Server.Implementations/Sync/SyncConfig.cs
new file mode 100644
index 000000000..52c774330
--- /dev/null
+++ b/MediaBrowser.Server.Implementations/Sync/SyncConfig.cs
@@ -0,0 +1,29 @@
+using MediaBrowser.Common.Configuration;
+using MediaBrowser.Model.Sync;
+using System.Collections.Generic;
+
+namespace MediaBrowser.Server.Implementations.Sync
+{
+ public class SyncConfigurationFactory : IConfigurationFactory
+ {
+ public IEnumerable<ConfigurationStore> GetConfigurations()
+ {
+ return new List<ConfigurationStore>
+ {
+ new ConfigurationStore
+ {
+ ConfigurationType = typeof(SyncOptions),
+ Key = "sync"
+ }
+ };
+ }
+ }
+
+ public static class SyncExtensions
+ {
+ public static SyncOptions GetSyncOptions(this IConfigurationManager config)
+ {
+ return config.GetConfiguration<SyncOptions>("sync");
+ }
+ }
+}