aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Helpers
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-05-05 15:58:40 +0800
committercrupest <crupest@outlook.com>2021-05-05 15:58:40 +0800
commit0accc9f09d0aaf2292cb94e3c4e438c3f76f89e5 (patch)
tree6877c4815b54eddda828d3d89752ab964d17d1bf /BackEnd/Timeline/Helpers
parent1c4be4a43c4acd2ee46e37685e9153d9c5b34233 (diff)
downloadtimeline-0accc9f09d0aaf2292cb94e3c4e438c3f76f89e5.tar.gz
timeline-0accc9f09d0aaf2292cb94e3c4e438c3f76f89e5.tar.bz2
timeline-0accc9f09d0aaf2292cb94e3c4e438c3f76f89e5.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Helpers')
-rw-r--r--BackEnd/Timeline/Helpers/Cache/DataCacheHelper.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Helpers/Cache/DataCacheHelper.cs b/BackEnd/Timeline/Helpers/Cache/DataCacheHelper.cs
index 1d1ab64e..79cac23b 100644
--- a/BackEnd/Timeline/Helpers/Cache/DataCacheHelper.cs
+++ b/BackEnd/Timeline/Helpers/Cache/DataCacheHelper.cs
@@ -11,7 +11,7 @@ namespace Timeline.Helpers.Cache
{
public static class DataCacheHelper
{
- public static async Task<ActionResult> GenerateActionResult(Controller controller, ICacheableDataProvider provider, TimeSpan? maxAge = null)
+ public static async Task<ActionResult> GenerateActionResult(ControllerBase controller, ICacheableDataProvider provider, TimeSpan? maxAge = null)
{
const string CacheControlHeaderKey = "Cache-Control";
const string IfNonMatchHeaderKey = "If-None-Match";
@@ -74,7 +74,7 @@ namespace Timeline.Helpers.Cache
return controller.File(data.Data, data.ContentType, digest.LastModified, eTag);
}
- public static Task<ActionResult> GenerateActionResult(Controller controller, Func<Task<ICacheableDataDigest>> getDigestDelegate, Func<Task<ByteData>> getDataDelegate, TimeSpan? maxAge = null)
+ public static Task<ActionResult> GenerateActionResult(ControllerBase controller, Func<Task<ICacheableDataDigest>> getDigestDelegate, Func<Task<ByteData>> getDataDelegate, TimeSpan? maxAge = null)
{
return GenerateActionResult(controller, new DelegateCacheableDataProvider(getDigestDelegate, getDataDelegate), maxAge);
}