Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit bfbd97e

Browse files
authored
Merge 5c24d9c into e765f16
2 parents e765f16 + 5c24d9c commit bfbd97e

File tree

4 files changed

+299
-162
lines changed

4 files changed

+299
-162
lines changed

src/Titanium.Web.Proxy/Network/CachedCertificate.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
using System;
22
using System.Security.Cryptography.X509Certificates;
3+
using System.Threading.Tasks;
34

45
namespace Titanium.Web.Proxy.Network
56
{
67
/// <summary>
78
/// An object that holds the cached certificate
89
/// </summary>
9-
internal class CachedCertificate
10+
internal sealed class CachedCertificate
1011
{
11-
internal CachedCertificate()
12-
{
13-
LastAccess = DateTime.Now;
14-
}
15-
1612
internal X509Certificate2 Certificate { get; set; }
1713

1814
/// <summary>
19-
/// last time this certificate was used
20-
/// Usefull in determining its cache lifetime
15+
/// Certificate creation task.
16+
/// </summary>
17+
internal Task<X509Certificate2> CreationTask { get; set; }
18+
19+
/// <summary>
20+
/// Last time this certificate was used.
21+
/// Useful in determining its cache lifetime.
2122
/// </summary>
2223
internal DateTime LastAccess { get; set; }
2324
}

0 commit comments

Comments
 (0)