/// <summary> /// Initializes a new instance of the <see cref="ProcessMessageEventArgs"/> class. /// </summary> /// /// <param name="message">The message to be processed.</param> /// <param name="receiver">The receiver instance that can be used to perform message settlement.</param> /// <param name="cancellationToken">The processor's <see cref="System.Threading.CancellationToken"/> instance which will be cancelled /// in the event that <see cref="ServiceBusProcessor.StopProcessingAsync"/> is called. /// </param> public ProcessMessageEventArgs(ServiceBusReceivedMessage message, ServiceBusReceiver receiver, CancellationToken cancellationToken) { Message = message; _receiver = receiver; CancellationToken = cancellationToken; }
///<inheritdoc cref="ServiceBusReceiver.RenewMessageLockAsync(ServiceBusReceivedMessage, CancellationToken)"/> public virtual async Task RenewMessageLockAsync( ServiceBusReceivedMessage message, CancellationToken cancellationToken = default) { await _receiver.RenewMessageLockAsync(message, cancellationToken).ConfigureAwait(false); }