Language

WebPubSubChatServiceClient.GetConversation Method

Definition

Overloads

Name Description
GetConversation(String, RequestContext)

[Protocol Method] Get conversation information.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetConversation(String, CancellationToken)

Get conversation information.

GetConversation(String, RequestContext)

Source:
WebPubSubChatServiceClient.cs

[Protocol Method] Get conversation information.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response GetConversation(string conversationId, Azure.RequestContext context);
abstract member GetConversation : string * Azure.RequestContext -> Azure.Response
override this.GetConversation : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetConversation (conversationId As String, context As RequestContext) As Response

Parameters

conversationId
String

Conversation identifier.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

conversationId is null.

conversationId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetConversation(String, CancellationToken)

Source:
WebPubSubChatServiceClient.cs

Get conversation information.

public virtual Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatConversation> GetConversation(string conversationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConversation : string * System.Threading.CancellationToken -> Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatConversation>
override this.GetConversation : string * System.Threading.CancellationToken -> Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatConversation>
Public Overridable Function GetConversation (conversationId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of WebPubSubChatConversation)

Parameters

conversationId
String

Conversation identifier.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

conversationId is null.

conversationId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to