Пример #1
0
 public static string[] GetUserCertificateIds(this ListenerPlainConf conf)
 {
     return(conf.Hosts?
            .Select(x => x.CertificateId)
            .Where(x => !string.IsNullOrEmpty(x))
            .Distinct()
            .ToArray());
 }
Пример #2
0
 public static ListenerPlainConf Clone(this ListenerPlainConf conf)
 {
     return(new ListenerPlainConf(
                conf.Id,
                conf.IPEndPoint,
                conf.IsHttps,
                conf.Hosts
                .Select(x => x.Clone())
                .ToArray()));
 }