Compartilhar via


EventHubClientBuilderExtensions.AddEventHubProducerClient Método

Definição

Sobrecargas

AddEventHubProducerClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registra uma EventHubProducerClient instância com opções de conexão carregadas da instância fornecida configuration .

AddEventHubProducerClient<TBuilder>(TBuilder, String)

Registra uma EventHubProducerClient instância com o fornecido connectionString

AddEventHubProducerClient<TBuilder>(TBuilder, String, String)

Registra uma EventHubProducerClient instância com o fornecido connectionString e eventHubName

AddEventHubProducerClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Origem:
EventHubClientBuilderExtensions.cs
Origem:
EventHubClientBuilderExtensions.cs

Registra uma EventHubProducerClient instância com opções de conexão carregadas da instância fornecida configuration .

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.EventHubs.Producer.EventHubProducerClient,Azure.Messaging.EventHubs.Producer.EventHubProducerClientOptions> AddEventHubProducerClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddEventHubProducerClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.EventHubs.Producer.EventHubProducerClient, Azure.Messaging.EventHubs.Producer.EventHubProducerClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddEventHubProducerClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of EventHubProducerClient, EventHubProducerClientOptions)

Parâmetros de tipo

TBuilder
TConfiguration

Parâmetros

builder
TBuilder
configuration
TConfiguration

Retornos

Aplica-se a

AddEventHubProducerClient<TBuilder>(TBuilder, String)

Origem:
EventHubClientBuilderExtensions.cs
Origem:
EventHubClientBuilderExtensions.cs

Registra uma EventHubProducerClient instância com o fornecido connectionString

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.EventHubs.Producer.EventHubProducerClient,Azure.Messaging.EventHubs.Producer.EventHubProducerClientOptions> AddEventHubProducerClient<TBuilder> (this TBuilder builder, string connectionString) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddEventHubProducerClient : 'Builder * string -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.EventHubs.Producer.EventHubProducerClient, Azure.Messaging.EventHubs.Producer.EventHubProducerClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddEventHubProducerClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, connectionString As String) As IAzureClientBuilder(Of EventHubProducerClient, EventHubProducerClientOptions)

Parâmetros de tipo

TBuilder

Parâmetros

builder
TBuilder
connectionString
String

Retornos

Aplica-se a

AddEventHubProducerClient<TBuilder>(TBuilder, String, String)

Origem:
EventHubClientBuilderExtensions.cs
Origem:
EventHubClientBuilderExtensions.cs

Registra uma EventHubProducerClient instância com o fornecido connectionString e eventHubName

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.EventHubs.Producer.EventHubProducerClient,Azure.Messaging.EventHubs.Producer.EventHubProducerClientOptions> AddEventHubProducerClient<TBuilder> (this TBuilder builder, string connectionString, string eventHubName) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddEventHubProducerClient : 'Builder * string * string -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Messaging.EventHubs.Producer.EventHubProducerClient, Azure.Messaging.EventHubs.Producer.EventHubProducerClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddEventHubProducerClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, connectionString As String, eventHubName As String) As IAzureClientBuilder(Of EventHubProducerClient, EventHubProducerClientOptions)

Parâmetros de tipo

TBuilder

Parâmetros

builder
TBuilder
connectionString
String
eventHubName
String

Retornos

Aplica-se a