Udostępnij za pośrednictwem


QueueProcessor.ReleaseMessageAsync Method

Definition

Release the specified failed message back to the queue.

protected virtual System.Threading.Tasks.Task ReleaseMessageAsync (Azure.Storage.Queues.Models.QueueMessage message, Microsoft.Azure.WebJobs.Host.Executors.FunctionResult result, TimeSpan visibilityTimeout, System.Threading.CancellationToken cancellationToken);
abstract member ReleaseMessageAsync : Azure.Storage.Queues.Models.QueueMessage * Microsoft.Azure.WebJobs.Host.Executors.FunctionResult * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ReleaseMessageAsync : Azure.Storage.Queues.Models.QueueMessage * Microsoft.Azure.WebJobs.Host.Executors.FunctionResult * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function ReleaseMessageAsync (message As QueueMessage, result As FunctionResult, visibilityTimeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

message
QueueMessage

The message to release

result
Microsoft.Azure.WebJobs.Host.Executors.FunctionResult

The Microsoft.Azure.WebJobs.Host.Executors.FunctionResult from the job invocation.

visibilityTimeout
TimeSpan

The visibility timeout to set for the message.

cancellationToken
CancellationToken

The CancellationToken to use.

Returns

Applies to