88
99namespace Microsoft . DurableTask . Extensions . Azure ;
1010
11+ /// <summary>
12+ /// Extension methods for configuring Durable Task workers and clients to use the Azure Durable Task Scheduler service.
13+ /// </summary>
1114public static class DurableTaskSchedulerExtensions
1215{
13- // Configure the Durable Task *Worker* to use the Durable Task Scheduler service with the specified options.
16+ /// <summary>
17+ /// Configures Durable Task worker to use the Azure Durable Task Scheduler service.
18+ /// </summary>
19+ /// <param name="builder">The worker builder to configure.</param>
20+ /// <param name="endpointAddress">The endpoint address of the Durable Task Scheduler service.</param>
21+ /// <param name="taskHubName">The name of the task hub to connect to.</param>
22+ /// <param name="credential">The credential to use for authentication.</param>
23+ /// <param name="configure">Optional callback to configure additional options.</param>
1424 public static void UseDurableTaskScheduler (
1525 this IDurableTaskWorkerBuilder builder ,
1626 string endpointAddress ,
@@ -19,10 +29,18 @@ public static void UseDurableTaskScheduler(
1929 Action < DurableTaskSchedulerOptions > ? configure = null )
2030 {
2131 DurableTaskSchedulerOptions options = new ( endpointAddress , taskHubName , credential ) ;
32+
2233 configure ? . Invoke ( options ) ;
34+
2335 builder . UseGrpc ( GetGrpcChannelForOptions ( options ) ) ;
2436 }
2537
38+ /// <summary>
39+ /// Configures Durable Task worker to use the Azure Durable Task Scheduler service using a connection string.
40+ /// </summary>
41+ /// <param name="builder">The worker builder to configure.</param>
42+ /// <param name="connectionString">The connection string for the Durable Task Scheduler service.</param>
43+ /// <param name="configure">Optional callback to configure additional options.</param>
2644 public static void UseDurableTaskScheduler (
2745 this IDurableTaskWorkerBuilder builder ,
2846 string connectionString ,
@@ -33,7 +51,14 @@ public static void UseDurableTaskScheduler(
3351 builder . UseGrpc ( GetGrpcChannelForOptions ( options ) ) ;
3452 }
3553
36- // Configure the Durable Task *Client* to use the Durable Task Scheduler service with the specified options.
54+ /// <summary>
55+ /// Configures Durable Task client to use the Azure Durable Task Scheduler service.
56+ /// </summary>
57+ /// <param name="builder">The client builder to configure.</param>
58+ /// <param name="endpointAddress">The endpoint address of the Durable Task Scheduler service.</param>
59+ /// <param name="taskHubName">The name of the task hub to connect to.</param>
60+ /// <param name="credential">The credential to use for authentication.</param>
61+ /// <param name="configure">Optional callback to configure additional options.</param>
3762 public static void UseDurableTaskScheduler (
3863 this IDurableTaskClientBuilder builder ,
3964 string endpointAddress ,
@@ -42,10 +67,18 @@ public static void UseDurableTaskScheduler(
4267 Action < DurableTaskSchedulerOptions > ? configure = null )
4368 {
4469 DurableTaskSchedulerOptions options = new ( endpointAddress , taskHubName , credential ) ;
70+
4571 configure ? . Invoke ( options ) ;
72+
4673 builder . UseGrpc ( GetGrpcChannelForOptions ( options ) ) ;
4774 }
4875
76+ /// <summary>
77+ /// Configures Durable Task client to use the Azure Durable Task Scheduler service using a connection string.
78+ /// </summary>
79+ /// <param name="builder">The client builder to configure.</param>
80+ /// <param name="connectionString">The connection string for the Durable Task Scheduler service.</param>
81+ /// <param name="configure">Optional callback to configure additional options.</param>
4982 public static void UseDurableTaskScheduler (
5083 this IDurableTaskClientBuilder builder ,
5184 string connectionString ,
0 commit comments