diff options
author | crupest <crupest@outlook.com> | 2021-05-05 15:58:40 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-05-05 15:58:40 +0800 |
commit | 0accc9f09d0aaf2292cb94e3c4e438c3f76f89e5 (patch) | |
tree | 6877c4815b54eddda828d3d89752ab964d17d1bf /BackEnd/Timeline/Helpers | |
parent | 1c4be4a43c4acd2ee46e37685e9153d9c5b34233 (diff) | |
download | timeline-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.cs | 4 |
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);
}
|