Table of Contents

Delegate HandoffHandler

Namespace
Microsoft.Agents.Builder.App
Assembly
Microsoft.Agents.Builder.dll

Function for handling handoff activities.

public delegate Task HandoffHandler(ITurnContext turnContext, ITurnState turnState, string continuation, CancellationToken cancellationToken)

Parameters

turnContext ITurnContext

A strongly-typed context object for this turn.

turnState ITurnState

The turn state object that stores arbitrary data for this turn.

continuation string

The continuation token.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task

A task that represents the work queued to execute.

Constructors

HandoffHandler(object, nint)

public HandoffHandler(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(ITurnContext, ITurnState, string, CancellationToken, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(ITurnContext turnContext, ITurnState turnState, string continuation, CancellationToken cancellationToken, AsyncCallback callback, object @object)

Parameters

turnContext ITurnContext
turnState ITurnState
continuation string
cancellationToken CancellationToken
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Task EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Task

Invoke(ITurnContext, ITurnState, string, CancellationToken)

public virtual Task Invoke(ITurnContext turnContext, ITurnState turnState, string continuation, CancellationToken cancellationToken)

Parameters

turnContext ITurnContext
turnState ITurnState
continuation string
cancellationToken CancellationToken

Returns

Task