Condividi tramite


MessagingProvider.CreateClient Method

Definition

Overloads

CreateClient(String, ServiceBusClientOptions)

Creates a ServiceBusClient to use for communicating with the service.

CreateClient(String, TokenCredential, ServiceBusClientOptions)

Creates a ServiceBusClient to use for communicating with the service.

CreateClient(String, ServiceBusClientOptions)

Source:
MessagingProvider.cs

Creates a ServiceBusClient to use for communicating with the service.

protected internal virtual Azure.Messaging.ServiceBus.ServiceBusClient CreateClient (string connectionString, Azure.Messaging.ServiceBus.ServiceBusClientOptions options);
abstract member CreateClient : string * Azure.Messaging.ServiceBus.ServiceBusClientOptions -> Azure.Messaging.ServiceBus.ServiceBusClient
override this.CreateClient : string * Azure.Messaging.ServiceBus.ServiceBusClientOptions -> Azure.Messaging.ServiceBus.ServiceBusClient
Protected Friend Overridable Function CreateClient (connectionString As String, options As ServiceBusClientOptions) As ServiceBusClient

Parameters

connectionString
String

The connection string to use for connecting to the Service Bus namespace.

options
ServiceBusClientOptions

The set of options to use for configuring the client. These options are computed from the ServiceBusOptions passed to the MessagingProvider constructor.

Returns

The client that will be used by the extension for communicating with the service.

Applies to

CreateClient(String, TokenCredential, ServiceBusClientOptions)

Source:
MessagingProvider.cs

Creates a ServiceBusClient to use for communicating with the service.

protected internal virtual Azure.Messaging.ServiceBus.ServiceBusClient CreateClient (string fullyQualifiedNamespace, Azure.Core.TokenCredential credential, Azure.Messaging.ServiceBus.ServiceBusClientOptions options);
abstract member CreateClient : string * Azure.Core.TokenCredential * Azure.Messaging.ServiceBus.ServiceBusClientOptions -> Azure.Messaging.ServiceBus.ServiceBusClient
override this.CreateClient : string * Azure.Core.TokenCredential * Azure.Messaging.ServiceBus.ServiceBusClientOptions -> Azure.Messaging.ServiceBus.ServiceBusClient
Protected Friend Overridable Function CreateClient (fullyQualifiedNamespace As String, credential As TokenCredential, options As ServiceBusClientOptions) As ServiceBusClient

Parameters

fullyQualifiedNamespace
String

The connection string to use for connecting to the Service Bus namespace.

credential
TokenCredential

The Azure managed identity credential to use for authorization. Access controls may be specified by the Service Bus namespace.

options
ServiceBusClientOptions

The set of options to use for configuring the client. These options are computed from the ServiceBusOptions passed to the MessagingProvider constructor.

Returns

The client that will be used by the extension for communicating with the service.

Applies to