Make CertificateStore methods virtual
parent
7511bf112b
commit
eb122b944b
|
@ -2,5 +2,6 @@
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/../ln.templates" vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -11,9 +11,9 @@ public class CertificateStore
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddCertificate(X509Certificate certificate) => _cache.Add(certificate.Subject, certificate);
|
public virtual void AddCertificate(X509Certificate certificate) => _cache.Add(certificate.Subject, certificate);
|
||||||
public bool TryGetCertificate(string hostname, out X509Certificate certificate) =>
|
public virtual bool TryGetCertificate(string hostname, out X509Certificate certificate) =>
|
||||||
_cache.TryGetValue(hostname, out certificate);
|
_cache.TryGetValue(hostname, out certificate);
|
||||||
|
|
||||||
public void RemoveCertificate(string hostname) => _cache.Remove(hostname);
|
public virtual void RemoveCertificate(string hostname) => _cache.Remove(hostname);
|
||||||
}
|
}
|
|
@ -9,7 +9,7 @@
|
||||||
<Copyright>(c) 2020 Harald Wolff-Thobaben</Copyright>
|
<Copyright>(c) 2020 Harald Wolff-Thobaben</Copyright>
|
||||||
<PackageTags>http server</PackageTags>
|
<PackageTags>http server</PackageTags>
|
||||||
<LangVersion>default</LangVersion>
|
<LangVersion>default</LangVersion>
|
||||||
<PackageVersion>0.9.8-preview4</PackageVersion>
|
<PackageVersion>0.9.8</PackageVersion>
|
||||||
<AssemblyVersion>0.6.2.0</AssemblyVersion>
|
<AssemblyVersion>0.6.2.0</AssemblyVersion>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
Loading…
Reference in New Issue