Share via


IConversationReferenceStore.Add Method

Definition

Add a conversation reference to the store. If overwrite, update the existing one, otherwise add when not exist.

public System.Threading.Tasks.Task<bool> Add (string key, Microsoft.Bot.Schema.ConversationReference reference, Microsoft.TeamsFx.Conversation.ConversationReferenceStoreAddOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member Add : string * Microsoft.Bot.Schema.ConversationReference * Microsoft.TeamsFx.Conversation.ConversationReferenceStoreAddOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function Add (key As String, reference As ConversationReference, options As ConversationReferenceStoreAddOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

key
String

The target key.

reference
ConversationReference

The conversation reference to be added.

options
ConversationReferenceStoreAddOptions

The options to add the conversation reference.

cancellationToken
CancellationToken

The cancellation token.

Returns

true if added or updated, false if not changed.

Applies to