You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gateway/Mime/Certificater.cs

41 lines
958 B
C#

1 year ago
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
1 year ago
namespace UMC.Proxy
1 year ago
{
public class Certificater
{
static ConcurrentDictionary<string, int> _Hosts = new ConcurrentDictionary<string, int>();
public static ConcurrentDictionary<string, int> UnCertificatesHosts
{
get
{
return _Hosts;
}
}
public static Dictionary<string, Certificater> Certificates
{
get
{
return _certificates;
}
}
static Dictionary<string, Certificater> _certificates = new Dictionary<string, Certificater>();
public string Name
{
get; set;
}
public X509Certificate2 Certificate
{
get; set;
}
public int Time
{
get; set;
}
}
}