IStreamingWorkflowRun.SendResponseAsync<TResponse> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends a response to a DurableWorkflowWaitingForInputEvent to resume the workflow.
public System.Threading.Tasks.ValueTask SendResponseAsync<TResponse>(Microsoft.Agents.AI.DurableTask.Workflows.DurableWorkflowWaitingForInputEvent requestEvent, TResponse response, System.Threading.CancellationToken cancellationToken = default);
abstract member SendResponseAsync : Microsoft.Agents.AI.DurableTask.Workflows.DurableWorkflowWaitingForInputEvent * 'Response * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Function SendResponseAsync(Of TResponse) (requestEvent As DurableWorkflowWaitingForInputEvent, response As TResponse, Optional cancellationToken As CancellationToken = Nothing) As ValueTask
Type Parameters
- TResponse
The type of the response data.
Parameters
- requestEvent
- DurableWorkflowWaitingForInputEvent
The request event to respond to.
- response
- TResponse
The response data to send.
- cancellationToken
- CancellationToken
A cancellation token to observe.
Returns
A ValueTask representing the asynchronous operation.