-
Notifications
You must be signed in to change notification settings - Fork 866
Expand file tree
/
Copy pathAzureServiceBusTopicHealthCheckOptions.cs
More file actions
28 lines (25 loc) · 1.17 KB
/
AzureServiceBusTopicHealthCheckOptions.cs
File metadata and controls
28 lines (25 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace HealthChecks.AzureServiceBus.Configuration;
/// <summary>
/// Configuration options for <see cref="AzureServiceBusTopicHealthCheck"/>.
/// </summary>
public class AzureServiceBusTopicHealthCheckOptions : AzureServiceBusHealthCheckOptions
{
/// <summary>
/// The name of the topic to check.
/// </summary>
public string TopicName { get; set; }
/// <summary>
/// Will use <c>CreateMessageBatchAsync</c> method to determine status if set to <see langword="true"/> (default),
/// otherwise; will use <c>GetProperties*</c> method.
/// </summary>
/// <remarks>
/// CreateMessageBatch requires Send claim to work. However, if only Receiver claim using the Azure built-in roles (RBAC)
/// <see href="https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/integration#azure-service-bus-data-receiver">Azure Service Bus Data Receiver</see>
/// is used set this to <see langword="false"/>. By default <see langword="true"/>.
/// </remarks>
public bool UseCreateMessageBatchAsyncMode { get; set; } = true;
public AzureServiceBusTopicHealthCheckOptions(string topicName)
{
TopicName = topicName;
}
}