public static string[] GetUserCertificateIds(this ListenerPlainConf conf) { return(conf.Hosts? .Select(x => x.CertificateId) .Where(x => !string.IsNullOrEmpty(x)) .Distinct() .ToArray()); }
public static ListenerPlainConf Clone(this ListenerPlainConf conf) { return(new ListenerPlainConf( conf.Id, conf.IPEndPoint, conf.IsHttps, conf.Hosts .Select(x => x.Clone()) .ToArray())); }