Beispiel #1
0
 /// <summary>
 /// Update a <see cref="DequeuedMessage"/> after calling
 /// <see cref="QueueClient.UpdateMessageAsync"/> with the resulting
 /// <see cref="UpdatedMessage"/>
 /// </summary>
 /// <param name="updated">The message details.</param>
 /// <returns>The updated <see cref="DequeuedMessage"/>.</returns>
 public DequeuedMessage Update(UpdatedMessage updated) =>
 QueuesModelFactory.DequeuedMessage(
     this.MessageId,
     this.InsertionTime,
     this.ExpirationTime,
     updated.PopReceipt,
     updated.TimeNextVisible,
     this.DequeueCount,
     this.MessageText);
 /// <summary>
 /// Update a <see cref="UpdateReceipt"/> after calling
 /// <see cref="QueueClient.UpdateMessageAsync"/> with the resulting
 /// <see cref="UpdateReceipt"/>.
 /// </summary>
 /// <param name="updated">The message details.</param>
 /// <returns>The updated <see cref="QueueMessage"/>.</returns>
 public QueueMessage Update(UpdateReceipt updated) =>
 QueuesModelFactory.QueueMessage(
     MessageId,
     updated.PopReceipt,
     MessageText,
     DequeueCount,
     updated.NextVisibleOn,
     InsertedOn,
     ExpiresOn);