Skip to content

Commit 73e8456

Browse files
fixed await
1 parent 7dd14d8 commit 73e8456

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

SslStoreCaProxy/SslStoreCaProxy.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public async Task<EnrollmentResult> Enroll(string csr, string subject, Dictionar
187187
var emailApproverRequest = _requestManager.GetEmailApproverListRequest(productInfo.ProductID, product);
188188
_logger.LogTrace($"Email Approver Request JSON {JsonConvert.SerializeObject(emailApproverRequest)}");
189189

190-
var emailApproverResponse = client.SubmitEmailApproverRequestAsync(emailApproverRequest);
190+
var emailApproverResponse = await client.SubmitEmailApproverRequestAsync(emailApproverRequest);
191191
_logger.LogTrace($"Email Approver Response JSON {JsonConvert.SerializeObject(emailApproverResponse)}");
192192

193193
var emailValidation = ValidateEmails(emailApproverResponse, arrayApproverEmails, productInfo, count);
@@ -376,7 +376,7 @@ public async Task Synchronize(BlockingCollection<AnyCAPluginCertificate> blockin
376376
_logger.MethodExit();
377377
}
378378

379-
private string ValidateEmails(Task<EmailApproverResponse> validEmails, string[] arrayApproverEmails, EnrollmentProductInfo productInfo, int count)
379+
private string ValidateEmails(EmailApproverResponse validEmails, string[] arrayApproverEmails, EnrollmentProductInfo productInfo, int count)
380380
{
381381
if (arrayApproverEmails.Length > 1 && productInfo.ProductID.Contains("digi"))
382382
{
@@ -385,17 +385,17 @@ private string ValidateEmails(Task<EmailApproverResponse> validEmails, string[]
385385

386386
if (count == 1 && productInfo.ProductID.Contains("digi") && arrayApproverEmails.Length > 0)
387387
{
388-
if (!validEmails.Result.ApproverEmailList.Contains(arrayApproverEmails[0]))
388+
if (!validEmails.ApproverEmailList.Contains(arrayApproverEmails[0]))
389389
{
390-
return $"Digicert Approver Email must be one of the following {string.Join(",", validEmails.Result.ApproverEmailList)}";
390+
return $"Digicert Approver Email must be one of the following {string.Join(",", validEmails.ApproverEmailList)}";
391391
}
392392
}
393393

394394
if (!productInfo.ProductID.Contains("digi"))
395395
{
396-
if (!validEmails.Result.ApproverEmailList.Intersect(arrayApproverEmails).Any())
396+
if (!validEmails.ApproverEmailList.Intersect(arrayApproverEmails).Any())
397397
{
398-
return $"Sectigo Approver Email must be one of the following {string.Join(",", validEmails.Result.ApproverEmailList)}";
398+
return $"Sectigo Approver Email must be one of the following {string.Join(",", validEmails.ApproverEmailList)}";
399399
}
400400
}
401401

0 commit comments

Comments
 (0)