TestAdapter.ProcessActivityAsync 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.
Overloads
| Name | Description |
|---|---|
| ProcessActivityAsync(IActivity, AgentCallbackHandler, CancellationToken) | |
| ProcessActivityAsync(ClaimsIdentity, IActivity, AgentCallbackHandler, CancellationToken) |
Receives an activity and runs it through the middleware pipeline. |
ProcessActivityAsync(IActivity, AgentCallbackHandler, CancellationToken)
public System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.InvokeResponse> ProcessActivityAsync(Microsoft.Agents.Core.Models.IActivity activity, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.ProcessActivityAsync : Microsoft.Agents.Core.Models.IActivity * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.InvokeResponse>
Public Function ProcessActivityAsync (activity As IActivity, callback As AgentCallbackHandler, cancellationToken As CancellationToken) As Task(Of InvokeResponse)
Parameters
- activity
- IActivity
- callback
- AgentCallbackHandler
- cancellationToken
- CancellationToken
Returns
Applies to
ProcessActivityAsync(ClaimsIdentity, IActivity, AgentCallbackHandler, CancellationToken)
Receives an activity and runs it through the middleware pipeline.
public override System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.InvokeResponse> ProcessActivityAsync(System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Agents.Core.Models.IActivity activity, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.ProcessActivityAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.IActivity * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.InvokeResponse>
Public Overrides Function ProcessActivityAsync (claimsIdentity As ClaimsIdentity, activity As IActivity, callback As AgentCallbackHandler, cancellationToken As CancellationToken) As Task(Of InvokeResponse)
Parameters
- claimsIdentity
- ClaimsIdentity
- activity
- IActivity
The activity to process.
- callback
- AgentCallbackHandler
The bot logic to invoke.
- 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.