IMiddlewareSet.ReceiveActivityWithStatusAsync 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.
Processes an activity.
public System.Threading.Tasks.Task ReceiveActivityWithStatusAsync(Microsoft.Agents.Builder.ITurnContext turnContext, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ReceiveActivityWithStatusAsync : Microsoft.Agents.Builder.ITurnContext * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ReceiveActivityWithStatusAsync (turnContext As ITurnContext, callback As AgentCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- turnContext
- ITurnContext
The context object for the turn.
- callback
- AgentCallbackHandler
The delegate to call when the set finishes processing the activity.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
A task that represents the work queued to execute.