/// <summary> /// Query all certificates /// </summary> /// <param name="store"></param> /// <param name="filter"></param> /// <param name="ct"></param> /// <returns></returns> public static async Task <IEnumerable <Certificate> > QueryAllCertificatesAsync( this ICertificateStore store, CertificateFilter filter, CancellationToken ct = default) { var results = await store.QueryCertificatesAsync(filter, null, ct); var certificates = new List <Certificate>(results.Certificates); while (results.ContinuationToken != null) { results = await store.ListCertificatesAsync( results.ContinuationToken, null, ct); certificates.AddRange(results.Certificates); } return(certificates); }