Commit 8100b4ea authored by honfika's avatar honfika Committed by GitHub

Merge pull request #431 from jgilbert2017/jgilbert2017-pullreq

propagate ExceptionFunc to CertificateManager
parents 0ff6870d 687c6cd6
......@@ -43,7 +43,7 @@ namespace Titanium.Web.Proxy.Network
/// </summary>
private readonly ConcurrentDictionary<string, CachedCertificate> certificateCache;
private readonly ExceptionHandler exceptionFunc;
private ExceptionHandler exceptionFunc;
private readonly ConcurrentDictionary<string, Task<X509Certificate2>> pendingCertificateCreationTasks;
private ICertificateMaker certEngine;
......@@ -235,6 +235,10 @@ namespace Titanium.Web.Proxy.Network
/// </summary>
public X509KeyStorageFlags StorageFlag { get; set; } = X509KeyStorageFlags.Exportable;
public ExceptionHandler ExceptionFunc {
set => exceptionFunc = value;
}
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
......
......@@ -221,7 +221,10 @@ namespace Titanium.Web.Proxy
public ExceptionHandler ExceptionFunc
{
get => exceptionFunc ?? defaultExceptionFunc;
set => exceptionFunc = value;
set {
exceptionFunc = value;
CertificateManager.ExceptionFunc = value;
}
}
/// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment