Share via


EmailSendOperation Class

Definition

An Operation<T> for tracking the status of a SendAsync(WaitUntil, EmailMessage, CancellationToken) request. Its Value upon successful completion will be an object which contains the OperationId = Azure.Communication.Email.EmailSendResult.Id, operation status = Status and error if any for terminal failed status.

public class EmailSendOperation : Azure.Operation<Azure.Communication.Email.EmailSendResult>
type EmailSendOperation = class
    inherit Operation<EmailSendResult>
Public Class EmailSendOperation
Inherits Operation(Of EmailSendResult)
Inheritance

Constructors

EmailSendOperation()

Initializes a new EmailSendOperation instance for mocking.

EmailSendOperation(String, EmailClient)

Initializes a new EmailSendOperation instance

Properties

HasCompleted

Gets a value indicating whether the operation has completed.

HasValue

Gets a value indicating whether the operation completed and successfully produced a value. The Value property is the status of the email send operation.

Id

Gets an ID representing the operation that can be used to poll for the status of the long-running operation. There are cases that operation id is not available, we return "NOT_SET" for unavailable operation id.

Value

Gets the status of the email send operation.

Methods

GetRawResponse()

The last HTTP response received from the server.

GetRehydrationToken()

Get a token that can be used to rehydrate the operation.

(Inherited from Operation)
UpdateStatus(CancellationToken)

Check for the latest status of the email send operation.

UpdateStatusAsync(CancellationToken)

Check for the latest status of the email send operation.

WaitForCompletion(CancellationToken)

Periodically calls the server till the long-running operation completes.

WaitForCompletion(DelayStrategy, CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from Operation<T>)
WaitForCompletion(TimeSpan, CancellationToken)

Periodically calls the server till the long-running operation completes.

WaitForCompletionAsync(CancellationToken)

Periodically calls the server till the long-running operation completes.

WaitForCompletionAsync(DelayStrategy, CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from Operation<T>)
WaitForCompletionAsync(TimeSpan, CancellationToken)

Periodically calls the server till the long-running operation completes.

WaitForCompletionResponse(CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from Operation)
WaitForCompletionResponse(DelayStrategy, CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from Operation)
WaitForCompletionResponse(TimeSpan, CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from Operation)
WaitForCompletionResponseAsync(CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from Operation)
WaitForCompletionResponseAsync(DelayStrategy, CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from Operation)
WaitForCompletionResponseAsync(TimeSpan, CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from Operation)

Applies to