Condividi tramite


WebPubSubServiceClientBuilderExtensions.AddWebPubSubServiceClient Method

Definition

Overloads

AddWebPubSubServiceClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registers a WebPubSubServiceClient instance.

AddWebPubSubServiceClient<TBuilder>(TBuilder, String, String)

Registers a WebPubSubServiceClient instance.

AddWebPubSubServiceClient<TBuilder>(TBuilder, Uri, String, AzureKeyCredential)

Registers a WebPubSubServiceClient instance with the provided endpoint, and hub and credential

AddWebPubSubServiceClient<TBuilder>(TBuilder, Uri, String, TokenCredential)

Registers a WebPubSubServiceClient instance with the provided endpoint, and hub and credential

AddWebPubSubServiceClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
WebPubSubServiceClientBuilderExtensions.cs

Registers a WebPubSubServiceClient instance.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.WebPubSub.WebPubSubServiceClient,Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions> AddWebPubSubServiceClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddWebPubSubServiceClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.WebPubSub.WebPubSubServiceClient, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddWebPubSubServiceClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of WebPubSubServiceClient, WebPubSubServiceClientOptions)

Type Parameters

TBuilder
TConfiguration

Parameters

builder
TBuilder

The builder to register with.

configuration
TConfiguration

The configuration values.

Returns

Applies to

AddWebPubSubServiceClient<TBuilder>(TBuilder, String, String)

Source:
WebPubSubServiceClientBuilderExtensions.cs

Registers a WebPubSubServiceClient instance.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.WebPubSub.WebPubSubServiceClient,Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions> AddWebPubSubServiceClient<TBuilder> (this TBuilder builder, string connectionString, string hub) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddWebPubSubServiceClient : 'Builder * string * string -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.WebPubSub.WebPubSubServiceClient, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddWebPubSubServiceClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, connectionString As String, hub As String) As IAzureClientBuilder(Of WebPubSubServiceClient, WebPubSubServiceClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder

The builder to register with.

connectionString
String

HTTP or HTTPS endpoint for the Web PubSub service instance.

hub
String

Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.

Returns

Applies to

AddWebPubSubServiceClient<TBuilder>(TBuilder, Uri, String, AzureKeyCredential)

Source:
WebPubSubServiceClientBuilderExtensions.cs

Registers a WebPubSubServiceClient instance with the provided endpoint, and hub and credential

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.WebPubSub.WebPubSubServiceClient,Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions> AddWebPubSubServiceClient<TBuilder> (this TBuilder builder, Uri endpoint, string hub, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddWebPubSubServiceClient : 'Builder * Uri * string * Azure.AzureKeyCredential -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.WebPubSub.WebPubSubServiceClient, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddWebPubSubServiceClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, endpoint As Uri, hub As String, credential As AzureKeyCredential) As IAzureClientBuilder(Of WebPubSubServiceClient, WebPubSubServiceClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder
endpoint
Uri
hub
String
credential
AzureKeyCredential

Returns

Applies to

AddWebPubSubServiceClient<TBuilder>(TBuilder, Uri, String, TokenCredential)

Source:
WebPubSubServiceClientBuilderExtensions.cs

Registers a WebPubSubServiceClient instance with the provided endpoint, and hub and credential

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.WebPubSub.WebPubSubServiceClient,Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions> AddWebPubSubServiceClient<TBuilder> (this TBuilder builder, Uri endpoint, string hub, Azure.Core.TokenCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddWebPubSubServiceClient : 'Builder * Uri * string * Azure.Core.TokenCredential -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.WebPubSub.WebPubSubServiceClient, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddWebPubSubServiceClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, endpoint As Uri, hub As String, credential As TokenCredential) As IAzureClientBuilder(Of WebPubSubServiceClient, WebPubSubServiceClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder
endpoint
Uri
hub
String
credential
TokenCredential

Returns

Applies to