Language

WebPubSubChatServiceClient.CreateOrReplaceRoomAsync Method

Definition

Overloads

Name Description
CreateOrReplaceRoomAsync(String, RequestContent, MatchConditions, RequestContext)

[Protocol Method] Create or replace a room with a client-specified ID.

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

Create or replace a room with a client-specified ID.

CreateOrReplaceRoomAsync(String, RequestContent, MatchConditions, RequestContext)

Source:
WebPubSubChatServiceClient.cs

[Protocol Method] Create or replace a room with a client-specified ID.

  • 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> CreateOrReplaceRoomAsync(string roomId, Azure.Core.RequestContent content, Azure.MatchConditions matchConditions = default, Azure.RequestContext context = default);
abstract member CreateOrReplaceRoomAsync : string * Azure.Core.RequestContent * Azure.MatchConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateOrReplaceRoomAsync : string * Azure.Core.RequestContent * Azure.MatchConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateOrReplaceRoomAsync (roomId As String, content As RequestContent, Optional matchConditions As MatchConditions = Nothing, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

roomId
String

Room identifier.

content
RequestContent

The content to send as the body of the request.

matchConditions
MatchConditions

The content to send as the request conditions of the request.

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 content is null.

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

Service returned a non-success status code.

Applies to

CreateOrReplaceRoomAsync(String, WebPubSubChatRoom, MatchConditions, CancellationToken)

Source:
WebPubSubChatServiceClient.cs

Create or replace a room with a client-specified ID.

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

Parameters

roomId
String

Room identifier.

resource
WebPubSubChatRoom

The resource instance.

matchConditions
MatchConditions

The content to send as the request conditions of the request.

cancellationToken
CancellationToken

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

Returns

Exceptions

roomId or resource is null.

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

Service returned a non-success status code.

Applies to