Skip to content

Commit

Permalink
There is no destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Kees committed Oct 12, 2023
1 parent 335a641 commit 36aebe6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ChromiumHtmlToPdfLib/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public bool DiskCacheDisabled
public bool UseOldHeadlessMode { get; set; }
#endregion

#region Constructor & Destructor
#region Constructor
/// <summary>
/// Creates this object and sets it's needed properties
/// </summary>
Expand Down
13 changes: 12 additions & 1 deletion ChromiumHtmlToPdfLib/Helpers/FileCacheHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,22 @@ namespace ChromiumHtmlToPdfLib.Helpers;

internal class FileCacheHandler : HttpClientHandler
{
#region Properties
/// <summary>
/// <see cref="HttpClientHandler"/>
/// </summary>
HttpClientHandler _httpClientHandler;

public FileCacheHandler(HttpClientHandler httpClientHandler, DirectoryInfo cacheFolder)
/// <summary>
/// The cache folder
/// </summary>
DirectoryInfo _cacheFolder;
#endregion

internal FileCacheHandler(HttpClientHandler httpClientHandler, DirectoryInfo cacheFolder)
{
_httpClientHandler = httpClientHandler;
_cacheFolder = cacheFolder;
}

protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Expand Down

0 comments on commit 36aebe6

Please sign in to comment.