@@ -31,13 +31,19 @@ class MyOrchestrator : TaskOrchestrator<{type}, string>
3131 string expectedOutput = TestHelpers . WrapAndFormat (
3232 GeneratedClassName ,
3333 methodList : $@ "
34+ /// <summary>
35+ /// Schedules a new instance of the <see cref=""MyOrchestrator""/> orchestrator.
36+ /// </summary>
3437/// <inheritdoc cref=""IOrchestrationSubmitter.ScheduleNewOrchestrationInstanceAsync""/>
3538public static Task<string> ScheduleNewMyOrchestratorInstanceAsync(
3639 this IOrchestrationSubmitter client, { input } , StartOrchestrationOptions? options = null)
3740{{
3841 return client.ScheduleNewOrchestrationInstanceAsync(""MyOrchestrator"", input, options);
3942}}
4043
44+ /// <summary>
45+ /// Calls the <see cref=""MyOrchestrator""/> sub-orchestrator.
46+ /// </summary>
4147/// <inheritdoc cref=""TaskOrchestrationContext.CallSubOrchestratorAsync(TaskName, object?, TaskOptions?)""/>
4248public static Task<string> CallMyOrchestratorAsync(
4349 this TaskOrchestrationContext context, { input } , TaskOptions? options = null)
@@ -80,13 +86,19 @@ abstract class MyOrchestratorBase : TaskOrchestrator<int, string>
8086 string expectedOutput = TestHelpers . WrapAndFormat (
8187 GeneratedClassName ,
8288 methodList : @"
89+ /// <summary>
90+ /// Schedules a new instance of the <see cref=""MyOrchestrator""/> orchestrator.
91+ /// </summary>
8392/// <inheritdoc cref=""IOrchestrationSubmitter.ScheduleNewOrchestrationInstanceAsync""/>
8493public static Task<string> ScheduleNewMyOrchestratorInstanceAsync(
8594 this IOrchestrationSubmitter client, int input, StartOrchestrationOptions? options = null)
8695{
8796 return client.ScheduleNewOrchestrationInstanceAsync(""MyOrchestrator"", input, options);
8897}
8998
99+ /// <summary>
100+ /// Calls the <see cref=""MyOrchestrator""/> sub-orchestrator.
101+ /// </summary>
90102/// <inheritdoc cref=""TaskOrchestrationContext.CallSubOrchestratorAsync(TaskName, object?, TaskOptions?)""/>
91103public static Task<string> CallMyOrchestratorAsync(
92104 this TaskOrchestrationContext context, int input, TaskOptions? options = null)
@@ -129,6 +141,10 @@ class MyActivity : TaskActivity<{type}, string>
129141 string expectedOutput = TestHelpers . WrapAndFormat (
130142 GeneratedClassName ,
131143 methodList : $@ "
144+ /// <summary>
145+ /// Calls the <see cref=""MyActivity""/> activity.
146+ /// </summary>
147+ /// <inheritdoc cref=""TaskOrchestrationContext.CallActivityAsync(TaskName, object?, TaskOptions?)""/>
132148public static Task<string> CallMyActivityAsync(this TaskOrchestrationContext ctx, { input } , TaskOptions? options = null)
133149{{
134150 return ctx.CallActivityAsync<string>(""MyActivity"", input, options);
@@ -169,6 +185,10 @@ public class MyClass { }
169185 string expectedOutput = TestHelpers . WrapAndFormat (
170186 generatedClassName : "GeneratedDurableTaskExtensions" ,
171187 methodList : @"
188+ /// <summary>
189+ /// Calls the <see cref=""MyActivity""/> activity.
190+ /// </summary>
191+ /// <inheritdoc cref=""TaskOrchestrationContext.CallActivityAsync(TaskName, object?, TaskOptions?)""/>
172192public static Task<MyNS.MyClass> CallMyActivityAsync(this TaskOrchestrationContext ctx, MyNS.MyClass input, TaskOptions? options = null)
173193{
174194 return ctx.CallActivityAsync<MyNS.MyClass>(""MyActivity"", input, options);
@@ -208,16 +228,14 @@ class MyActivityImpl : TaskActivity<MyClass, MyClass>
208228 public class MyClass { }
209229}" ;
210230
211- string expectedOutput = @"
212- // <auto-generated/>
213- #nullable enable
214-
215- using System;
216- using System.Threading.Tasks;
217- using Microsoft.DurableTask;
218- using Microsoft.DurableTask.Internal;
219-
220- namespace MyNS
231+ string expectedOutput = TestHelpers . WrapAndFormat (
232+ GeneratedClassName ,
233+ methodList : @"
234+ /// <summary>
235+ /// Calls the <see cref=""MyNS.MyActivityImpl""/> activity.
236+ /// </summary>
237+ /// <inheritdoc cref=""TaskOrchestrationContext.CallActivityAsync(TaskName, object?, TaskOptions?)""/>
238+ public static Task<MyNS.MyClass> CallMyActivityAsync(this TaskOrchestrationContext ctx, MyNS.MyClass input, TaskOptions? options = null)
221239{
222240 public static class GeneratedDurableTaskExtensions
223241 {
@@ -271,6 +289,10 @@ abstract class MyActivityBase : TaskActivity<int, string>
271289 string expectedOutput = TestHelpers . WrapAndFormat (
272290 GeneratedClassName ,
273291 methodList : @"
292+ /// <summary>
293+ /// Calls the <see cref=""MyActivity""/> activity.
294+ /// </summary>
295+ /// <inheritdoc cref=""TaskOrchestrationContext.CallActivityAsync(TaskName, object?, TaskOptions?)""/>
274296public static Task<string> CallMyActivityAsync(this TaskOrchestrationContext ctx, int input, TaskOptions? options = null)
275297{
276298 return ctx.CallActivityAsync<string>(""MyActivity"", input, options);
@@ -461,20 +483,30 @@ class MyEntity : TaskEntity<int>
461483 string expectedOutput = TestHelpers . WrapAndFormat (
462484 GeneratedClassName ,
463485 methodList : @"
486+ /// <summary>
487+ /// Schedules a new instance of the <see cref=""MyOrchestrator""/> orchestrator.
488+ /// </summary>
464489/// <inheritdoc cref=""IOrchestrationSubmitter.ScheduleNewOrchestrationInstanceAsync""/>
465490public static Task<string> ScheduleNewMyOrchestratorInstanceAsync(
466491 this IOrchestrationSubmitter client, int input, StartOrchestrationOptions? options = null)
467492{
468493 return client.ScheduleNewOrchestrationInstanceAsync(""MyOrchestrator"", input, options);
469494}
470495
496+ /// <summary>
497+ /// Calls the <see cref=""MyOrchestrator""/> sub-orchestrator.
498+ /// </summary>
471499/// <inheritdoc cref=""TaskOrchestrationContext.CallSubOrchestratorAsync(TaskName, object?, TaskOptions?)""/>
472500public static Task<string> CallMyOrchestratorAsync(
473501 this TaskOrchestrationContext context, int input, TaskOptions? options = null)
474502{
475503 return context.CallSubOrchestratorAsync<string>(""MyOrchestrator"", input, options);
476504}
477505
506+ /// <summary>
507+ /// Calls the <see cref=""MyActivity""/> activity.
508+ /// </summary>
509+ /// <inheritdoc cref=""TaskOrchestrationContext.CallActivityAsync(TaskName, object?, TaskOptions?)""/>
478510public static Task<string> CallMyActivityAsync(this TaskOrchestrationContext ctx, int input, TaskOptions? options = null)
479511{
480512 return ctx.CallActivityAsync<string>(""MyActivity"", input, options);
0 commit comments