Partager via


EventHubClientBuilderExtensions.AddEventHubProducerClient Méthode

Définition

Surcharges

AddEventHubProducerClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Inscrit un EventHubProducerClient instance avec des options de connexion chargées à partir du instance fourni configuration .

AddEventHubProducerClient<TBuilder>(TBuilder, String)

Inscrit un EventHubProducerClient instance avec le fourniconnectionString

AddEventHubProducerClient<TBuilder>(TBuilder, String, String)

Inscrit un EventHubProducerClient instance avec le et fourni connectionStringeventHubName

AddEventHubProducerClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
EventHubClientBuilderExtensions.cs
Source:
EventHubClientBuilderExtensions.cs

Inscrit un EventHubProducerClient instance avec des options de connexion chargées à partir du instance fourni 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)

Paramètres de type

TBuilder
TConfiguration

Paramètres

builder
TBuilder
configuration
TConfiguration

Retours

S’applique à

AddEventHubProducerClient<TBuilder>(TBuilder, String)

Source:
EventHubClientBuilderExtensions.cs
Source:
EventHubClientBuilderExtensions.cs

Inscrit un EventHubProducerClient instance avec le fourniconnectionString

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)

Paramètres de type

TBuilder

Paramètres

builder
TBuilder
connectionString
String

Retours

S’applique à

AddEventHubProducerClient<TBuilder>(TBuilder, String, String)

Source:
EventHubClientBuilderExtensions.cs
Source:
EventHubClientBuilderExtensions.cs

Inscrit un EventHubProducerClient instance avec le et fourni connectionStringeventHubName

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)

Paramètres de type

TBuilder

Paramètres

builder
TBuilder
connectionString
String
eventHubName
String

Retours

S’applique à