@@ -108,15 +108,30 @@ public abstract class TaskOrchestrationContext
108
108
/// <see cref="TaskFailedException.FailureDetails"/> property.
109
109
/// </exception>
110
110
public virtual Task CallActivityAsync ( TaskName name , object ? input = null , TaskOptions ? options = null )
111
- {
112
- return this . CallActivityAsync < object > ( name , input , options ) ;
113
- }
111
+ => this . CallActivityAsync < object > ( name , input , options ) ;
112
+
113
+ /// <returns>
114
+ /// A task that completes when the activity completes or fails. The result of the task is the activity's return value.
115
+ /// </returns>
116
+ /// <inheritdoc cref="CallActivityAsync(TaskName, object?, TaskOptions?)"/>
117
+ public virtual Task CallActivityAsync ( TaskName name , TaskOptions options )
118
+ => this . CallActivityAsync ( name , null , options ) ;
114
119
115
120
/// <returns>
116
121
/// A task that completes when the activity completes or fails. The result of the task is the activity's return value.
117
122
/// </returns>
118
- /// <inheritdoc cref="CallActivityAsync"/>
119
- public abstract Task < T > CallActivityAsync < T > ( TaskName name , object ? input = null , TaskOptions ? options = null ) ;
123
+ /// <typeparam name="TResult">The type into which to deserialize the activity's output.</typeparam>
124
+ /// <inheritdoc cref="CallActivityAsync(TaskName, object?, TaskOptions?)"/>
125
+ public virtual Task < TResult > CallActivityAsync < TResult > ( TaskName name , TaskOptions options )
126
+ => this . CallActivityAsync < TResult > ( name , null , options ) ;
127
+
128
+ /// <returns>
129
+ /// A task that completes when the activity completes or fails. The result of the task is the activity's return value.
130
+ /// </returns>
131
+ /// <typeparam name="TResult">The type into which to deserialize the activity's output.</typeparam>
132
+ /// <inheritdoc cref="CallActivityAsync(TaskName, object?, TaskOptions?)"/>
133
+ public abstract Task < TResult > CallActivityAsync < TResult > (
134
+ TaskName name , object ? input = null , TaskOptions ? options = null ) ;
120
135
121
136
/// <summary>
122
137
/// Creates a durable timer that expires after the specified delay.
@@ -247,13 +262,26 @@ public async Task<T> WaitForExternalEvent<T>(string eventName, TimeSpan timeout)
247
262
/// <summary>
248
263
/// Executes a named sub-orchestrator and returns the result.
249
264
/// </summary>
250
- /// <typeparam name="TResult">
251
- /// The type into which to deserialize the sub-orchestrator's output.
252
- /// </typeparam>
265
+ /// <typeparam name="TResult">The type into which to deserialize the sub-orchestrator's output.</typeparam>
253
266
/// <inheritdoc cref="CallSubOrchestratorAsync(TaskName, object?, TaskOptions?)"/>
254
267
public abstract Task < TResult > CallSubOrchestratorAsync < TResult > (
255
268
TaskName orchestratorName , object ? input = null , TaskOptions ? options = null ) ;
256
269
270
+ /// <summary>
271
+ /// Executes a named sub-orchestrator and returns the result.
272
+ /// </summary>
273
+ /// <typeparam name="TResult">The type into which to deserialize the sub-orchestrator's output.</typeparam>
274
+ /// <inheritdoc cref="CallSubOrchestratorAsync(TaskName, object?, TaskOptions?)"/>
275
+ public virtual Task < TResult > CallSubOrchestratorAsync < TResult > ( TaskName orchestratorName , TaskOptions options )
276
+ => this . CallSubOrchestratorAsync < TResult > ( orchestratorName , null , options ) ;
277
+
278
+ /// <summary>
279
+ /// Executes a named sub-orchestrator and returns the result.
280
+ /// </summary>
281
+ /// <inheritdoc cref="CallSubOrchestratorAsync(TaskName, object?, TaskOptions?)"/>
282
+ public virtual Task CallSubOrchestratorAsync ( TaskName orchestratorName , TaskOptions options )
283
+ => this . CallSubOrchestratorAsync ( orchestratorName , null , options ) ;
284
+
257
285
/// <summary>
258
286
/// Executes a named sub-orchestrator.
259
287
/// </summary>
@@ -296,11 +324,9 @@ public abstract Task<TResult> CallSubOrchestratorAsync<TResult>(
296
324
/// The sub-orchestration failed with an unhandled exception. The details of the failure can be found in the
297
325
/// <see cref="TaskFailedException.FailureDetails"/> property.
298
326
/// </exception>
299
- public Task CallSubOrchestratorAsync (
327
+ public virtual Task CallSubOrchestratorAsync (
300
328
TaskName orchestratorName , object ? input = null , TaskOptions ? options = null )
301
- {
302
- return this . CallSubOrchestratorAsync < object > ( orchestratorName , input , options ) ;
303
- }
329
+ => this . CallSubOrchestratorAsync < object > ( orchestratorName , input , options ) ;
304
330
305
331
/// <summary>
306
332
/// Restarts the orchestration with a new input and clears its history.
0 commit comments