1111using Microsoft . AspNetCore . Hosting ;
1212using Microsoft . Extensions . FileProviders ;
1313
14+ #if NETCOREAPP2_0 || NETSTANDARD2_0
15+ using IWebHostEnvironment = Microsoft . AspNetCore . Hosting . IHostingEnvironment ;
16+ #endif
17+
1418namespace React . AspNet
1519{
1620 /// <summary>
@@ -19,14 +23,14 @@ namespace React.AspNet
1923 public class MemoryFileCacheCore : ICache
2024 {
2125 private readonly IMemoryCache _cache ;
22- private readonly IHostingEnvironment _hostingEnv ;
26+ private readonly IWebHostEnvironment _hostingEnv ;
2327
2428 /// <summary>
2529 /// Initializes a new instance of the <see cref="MemoryFileCacheCore" /> class.
2630 /// </summary>
2731 /// <param name="cache">The cache to use</param>
2832 /// <param name="hostingEnv">The ASP.NET hosting environment.</param>
29- public MemoryFileCacheCore ( IMemoryCache cache , IHostingEnvironment hostingEnv )
33+ public MemoryFileCacheCore ( IMemoryCache cache , IWebHostEnvironment hostingEnv )
3034 {
3135 _cache = cache ;
3236 _hostingEnv = hostingEnv ;
@@ -52,7 +56,7 @@ public MemoryFileCacheCore(IMemoryCache cache, IHostingEnvironment hostingEnv)
5256 /// <param name="key">The cache key</param>
5357 /// <param name="data">Data to cache</param>
5458 /// <param name="slidingExpiration">
55- /// Sliding expiration, if cache key is not accessed in this time period it will
59+ /// Sliding expiration, if cache key is not accessed in this time period it will
5660 /// automatically be removed from the cache
5761 /// </param>
5862 /// <param name="cacheDependencyFiles">
0 commit comments