Sprog

WebPubSubChatServiceClient.GetTopicAsync Method

Definition

Overloads

Name Description
GetTopicAsync(String, String, RequestContext)

[Protocol Method] Get topic information.

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

Get topic information.

GetTopicAsync(String, String, RequestContext)

Source:
WebPubSubChatServiceClient.cs

[Protocol Method] Get topic information.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> GetTopicAsync(string roomId, string topicId, Azure.RequestContext context);
abstract member GetTopicAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetTopicAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetTopicAsync (roomId As String, topicId As String, context As RequestContext) As Task(Of Response)

Parameters

roomId
String

Room identifier.

topicId
String

Topic identifier unique within the room.

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

roomId or topicId is null.

roomId or topicId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetTopicAsync(String, String, CancellationToken)

Source:
WebPubSubChatServiceClient.cs

Get topic information.

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

Parameters

roomId
String

Room identifier.

topicId
String

Topic identifier unique within the room.

cancellationToken
CancellationToken

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

Returns

Exceptions

roomId or topicId is null.

roomId or topicId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to