Udostępnij za pośrednictwem


ChatClient.CreateChatThread Method

Definition

Overloads

CreateChatThread(CreateChatThreadOptions, CancellationToken)

Creates a ChatThreadClient asynchronously. ChatThreadClient.

CreateChatThread(String, IEnumerable<ChatParticipant>, String, CancellationToken)

Creates a ChatThreadClient synchronously.ChatThreadClient.

CreateChatThread(CreateChatThreadOptions, CancellationToken)

Source:
ChatClient.cs

Creates a ChatThreadClient asynchronously. ChatThreadClient.

public virtual Azure.Response<Azure.Communication.Chat.CreateChatThreadResult> CreateChatThread (Azure.Communication.Chat.CreateChatThreadOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateChatThread : Azure.Communication.Chat.CreateChatThreadOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>
override this.CreateChatThread : Azure.Communication.Chat.CreateChatThreadOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>
Public Overridable Function CreateChatThread (options As CreateChatThreadOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CreateChatThreadResult)

Parameters

options
CreateChatThreadOptions

CreateChatThread Options

cancellationToken
CancellationToken

The cancellation token for the task.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to

CreateChatThread(String, IEnumerable<ChatParticipant>, String, CancellationToken)

Source:
ChatClient.cs
Source:
ChatClient.cs

Creates a ChatThreadClient synchronously.ChatThreadClient.

public virtual Azure.Response<Azure.Communication.Chat.CreateChatThreadResult> CreateChatThread (string topic, System.Collections.Generic.IEnumerable<Azure.Communication.Chat.ChatParticipant> participants, string idempotencyToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateChatThread : string * seq<Azure.Communication.Chat.ChatParticipant> * string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>
override this.CreateChatThread : string * seq<Azure.Communication.Chat.ChatParticipant> * string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>
Public Overridable Function CreateChatThread (topic As String, participants As IEnumerable(Of ChatParticipant), Optional idempotencyToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CreateChatThreadResult)

Parameters

topic
String

Topic for the chat thread

participants
IEnumerable<ChatParticipant>

Participants to be included in the chat thread

idempotencyToken
String

If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-ID and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-ID is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs.

cancellationToken
CancellationToken

The cancellation token for the task.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to