Compartilhar via


WebPubSubServiceClient Construtores

Definição

Sobrecargas

WebPubSubServiceClient()

Inicializa uma nova instância de WebPubSubServiceClient para zombar.

WebPubSubServiceClient(String, String)

Inicializa uma nova instância do WebPubSubServiceClient.

WebPubSubServiceClient(String, String, WebPubSubServiceClientOptions)

Inicializa uma nova instância do WebPubSubServiceClient.

WebPubSubServiceClient(Uri, String, AzureKeyCredential)

Inicializa uma nova instância de WebPubSubServiceClient.

WebPubSubServiceClient(Uri, String, TokenCredential)

Inicializa uma nova instância de WebPubSubServiceClient.

WebPubSubServiceClient(Uri, String, AzureKeyCredential, WebPubSubServiceClientOptions)

Inicializa uma nova instância de WebPubSubServiceClient.

WebPubSubServiceClient(Uri, String, TokenCredential, WebPubSubServiceClientOptions)

Inicializa uma nova instância de WebPubSubServiceClient.

WebPubSubServiceClient()

Origem:
WebPubSubServiceClient.cs

Inicializa uma nova instância de WebPubSubServiceClient para zombar.

protected WebPubSubServiceClient ();
Protected Sub New ()

Aplica-se a

WebPubSubServiceClient(String, String)

Origem:
WebPubSubServiceClient_extensions.cs

Inicializa uma nova instância do WebPubSubServiceClient.

public WebPubSubServiceClient (string connectionString, string hub);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : string * string -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (connectionString As String, hub As String)

Parâmetros

connectionString
String

A cadeia de conexão contém Ponto de Extremidade e AccessKey.

hub
String

O nome do hub de destino, que deve começar com caracteres alfabéticos e só conter caracteres alfanuméricos ou sublinhado.

Aplica-se a

WebPubSubServiceClient(String, String, WebPubSubServiceClientOptions)

Origem:
WebPubSubServiceClient_extensions.cs

Inicializa uma nova instância do WebPubSubServiceClient.

public WebPubSubServiceClient (string connectionString, string hub, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions options);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : string * string * Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (connectionString As String, hub As String, options As WebPubSubServiceClientOptions)

Parâmetros

connectionString
String

A cadeia de conexão contém Ponto de Extremidade e AccessKey.

hub
String

O nome do hub de destino, que deve começar com caracteres alfabéticos e só conter caracteres alfanuméricos ou sublinhado.

Aplica-se a

WebPubSubServiceClient(Uri, String, AzureKeyCredential)

Origem:
WebPubSubServiceClient_extensions.cs

Inicializa uma nova instância de WebPubSubServiceClient.

public WebPubSubServiceClient (Uri endpoint, string hub, Azure.AzureKeyCredential credential);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : Uri * string * Azure.AzureKeyCredential -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (endpoint As Uri, hub As String, credential As AzureKeyCredential)

Parâmetros

endpoint
Uri

parâmetro server.

hub
String

O nome do hub de destino, que deve começar com caracteres alfabéticos e só conter caracteres alfanuméricos ou sublinhado.

credential
AzureKeyCredential

Uma credencial usada para autenticar em um Serviço do Azure.

Aplica-se a

WebPubSubServiceClient(Uri, String, TokenCredential)

Origem:
WebPubSubServiceClient_extensions.cs

Inicializa uma nova instância de WebPubSubServiceClient.

public WebPubSubServiceClient (Uri endpoint, string hub, Azure.Core.TokenCredential credential);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : Uri * string * Azure.Core.TokenCredential -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (endpoint As Uri, hub As String, credential As TokenCredential)

Parâmetros

endpoint
Uri

parâmetro server.

hub
String

O nome do hub de destino, que deve começar com caracteres alfabéticos e só conter caracteres alfanuméricos ou sublinhado.

credential
TokenCredential

Uma credencial de token usada para autenticar em um Serviço do Azure.

Aplica-se a

WebPubSubServiceClient(Uri, String, AzureKeyCredential, WebPubSubServiceClientOptions)

Origem:
WebPubSubServiceClient_extensions.cs

Inicializa uma nova instância de WebPubSubServiceClient.

public WebPubSubServiceClient (Uri endpoint, string hub, Azure.AzureKeyCredential credential, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions options);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : Uri * string * Azure.AzureKeyCredential * Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (endpoint As Uri, hub As String, credential As AzureKeyCredential, options As WebPubSubServiceClientOptions)

Parâmetros

endpoint
Uri

parâmetro server.

hub
String

O nome do hub de destino, que deve começar com caracteres alfabéticos e só conter caracteres alfanuméricos ou sublinhado.

credential
AzureKeyCredential

Uma credencial usada para autenticar em um Serviço do Azure.

options
WebPubSubServiceClientOptions

As opções para configurar o cliente.

Aplica-se a

WebPubSubServiceClient(Uri, String, TokenCredential, WebPubSubServiceClientOptions)

Origem:
WebPubSubServiceClient_extensions.cs

Inicializa uma nova instância de WebPubSubServiceClient.

public WebPubSubServiceClient (Uri endpoint, string hub, Azure.Core.TokenCredential credential, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions options);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : Uri * string * Azure.Core.TokenCredential * Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (endpoint As Uri, hub As String, credential As TokenCredential, options As WebPubSubServiceClientOptions)

Parâmetros

endpoint
Uri

parâmetro server.

hub
String

O nome do hub de destino, que deve começar com caracteres alfabéticos e só conter caracteres alfanuméricos ou sublinhado.

credential
TokenCredential

Uma credencial de token usada para autenticar em um Serviço do Azure.

options
WebPubSubServiceClientOptions

As opções para configurar o cliente.

Aplica-se a