aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs
diff options
context:
space:
mode:
authorebr11 Eric Reed spam <ebr11 Eric Reed spam@reedsplace.com>2012-09-20 11:28:02 -0400
committerebr11 Eric Reed spam <ebr11 Eric Reed spam@reedsplace.com>2012-09-20 11:28:02 -0400
commite2ae376eef11dbb69c6d5d0ca31b202394452390 (patch)
treecb7c90b9bd1685aa3f8219686bf0e1c1b306bdc0 /MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs
parent4e3ce41880d643a2951dc971f1e8f6e21f57829c (diff)
parentd8c01ded6eb57ba312e1cd62c4fa51dbcce6053a (diff)
Merge with default
Diffstat (limited to 'MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs')
-rw-r--r--MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs19
1 files changed, 8 insertions, 11 deletions
diff --git a/MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs b/MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs
index 95af9a344..dc363956f 100644
--- a/MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs
+++ b/MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs
@@ -17,7 +17,7 @@ namespace MediaBrowser.Api.HttpHandlers
{
return ApiService.IsApiUrlMatch("pluginconfiguration", request);
}
-
+
private BasePlugin _plugin;
private BasePlugin Plugin
{
@@ -39,18 +39,15 @@ namespace MediaBrowser.Api.HttpHandlers
return Task.FromResult(Plugin.Configuration);
}
- public override TimeSpan CacheDuration
+ protected override async Task<ResponseInfo> GetResponseInfo()
{
- get
- {
- return TimeSpan.FromDays(7);
- }
- }
+ var info = await base.GetResponseInfo().ConfigureAwait(false);
- protected override Task<DateTime?> GetLastDateModified()
- {
- return Task.FromResult<DateTime?>(Plugin.ConfigurationDateLastModified);
- }
+ info.DateLastModified = Plugin.ConfigurationDateLastModified;
+ info.CacheDuration = TimeSpan.FromDays(7);
+
+ return info;
+ }
}
}