ContentHashCache constructor
namespace: Serenity.Web assembly: Serenity.Net.Web
Creates a new instance of the class
public ContentHashCache(IOptions<CDNSettings> cdnSettings, IWebHostEnvironment hostEnvironment,
IHttpContextAccessor httpContextAccessor = null)
| parameter | description |
|---|---|
| cdnSettings | CDN settings |
| hostEnvironment | Host environment |
| httpContextAccessor | HTTP context accessor |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | hostEnvironment of httpContextAccessor is null |
See Also
- class CDNSettings
- class ContentHashCache