Skip to content

Commit

Permalink
[Service Bus] Clarifiy ScheduledEnqueueTime (#37861)
Browse files Browse the repository at this point in the history
* [Service Bus] Clarifiy ScheduledEnqueueTime 

The focus of these changes is to clarify how scheduled messages work.
  • Loading branch information
jsquire authored Jul 27, 2023
1 parent 3f346fd commit 2694b48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,17 +380,13 @@ public string ReplyTo
}

/// <summary>
/// Gets or sets the date and time in UTC at which the message will be enqueued. This
/// property returns the time in UTC; when setting the property, the supplied DateTime value must also be in UTC.
/// Gets or sets the date and time, in UTC, at which the message should be made available to receivers. This property does not control when a message is sent by the
/// client. Sending happens immediately when `SendAsync` is called. Service Bus will hide the message from receivers until the the requested time.
/// </summary>
/// <value>
/// The scheduled enqueue time in UTC. This value is for delayed message sending.
/// It is utilized to delay messages sending to a specific time in the future.
/// The date and time, in UTC, at which the message should be available to receivers. This time may not be exact; the actual time depends on the entity's workload and state.
/// </value>
/// <remarks>
/// Message enqueuing time does not mean that the message will be sent at the same time. It will get enqueued, but the actual sending time
/// depends on the queue's workload and its state.
/// </remarks>
/// <seealso href="https://learn.microsoft.com/azure/service-bus-messaging/message-sequencing#scheduled-messages">Scheduled messages</seealso>
public DateTimeOffset ScheduledEnqueueTime
{
get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,14 @@ public static ServiceBusReceivedMessage FromAmqpMessage(AmqpAnnotatedMessage mes
/// </remarks>
public string ReplyTo => AmqpMessage.Properties.ReplyTo?.ToString();

/// <summary>Gets the date and time in UTC at which the message will be enqueued. This
/// property returns the time in UTC; when setting the property, the supplied DateTime value must also be in UTC.</summary>
/// <value>The scheduled enqueue time in UTC. This value is for delayed message sending.
/// It is utilized to delay messages sending to a specific time in the future.</value>
/// <remarks> Message enqueuing time does not mean that the message will be sent at the same time. It will get enqueued, but the actual sending time
/// depends on the queue's workload and its state.</remarks>
/// <summary>
/// Gets or sets the date and time, in UTC, at which the message should be made available to receivers. This property does not control when a message is sent by the
/// client. Sending happens immediately when `SendAsync` is called. Service Bus will hide the message from receivers until the the requested time.
/// </summary>
/// <value>
/// The date and time, in UTC, at which the message should be available to receivers. This time may not be exact; the actual time depends on the entity's workload and state.
/// </value>
/// <seealso href="https://learn.microsoft.com/azure/service-bus-messaging/message-sequencing#scheduled-messages">Scheduled messages</seealso>
public DateTimeOffset ScheduledEnqueueTime => AmqpMessage.GetScheduledEnqueueTime();

/// <summary>
Expand Down

0 comments on commit 2694b48

Please sign in to comment.