From 958fd16758dcd14a81f3f065132361425f6d5732 Mon Sep 17 00:00:00 2001 From: Avin Pattath Date: Fri, 20 Sep 2024 13:46:13 -0700 Subject: [PATCH] update comment --- .../SendEmailWithManualPollingUsingOperationId/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SendEmailAdvanced/SendEmailWithManualPollingUsingOperationId/Program.cs b/SendEmailAdvanced/SendEmailWithManualPollingUsingOperationId/Program.cs index eb1a8923..fbd95473 100644 --- a/SendEmailAdvanced/SendEmailWithManualPollingUsingOperationId/Program.cs +++ b/SendEmailAdvanced/SendEmailWithManualPollingUsingOperationId/Program.cs @@ -37,12 +37,15 @@ static async Task Main(string[] args) /// Do a bunch of other things here... /// Poll for the status of the email send operation using the previous operationId - await PollForEmailSendOperationStatus(emailClient, operationId); + await PollForEmailSendOperationStatusWithExistingOperationId(emailClient, operationId); } - private static async Task PollForEmailSendOperationStatus(EmailClient emailClient, string operationId) + private static async Task PollForEmailSendOperationStatusWithExistingOperationId(EmailClient emailClient, string operationId) { /// Rehydrate a new EmailSendOperation object using the given operationId + /// Rehydration refers to the process of creating a new EmailSendOperation object using the operation ID from a previous EmailSendOperation. + /// This is necessary in case you want to continue monitoring the status of the email manually, when you don't have + /// the original EmailSendOperation object from the initial request. EmailSendOperation rehydratedEmailSendOperation = new EmailSendOperation(operationId, emailClient); /// Call UpdateStatus on the rehydrated email send operation to poll for the status manually.