Skip to content
Docs Try Aspire

AspireEventHubsExtensions

Class static net10.0
📦 Aspire.Azure.Messaging.EventHubs v13.1.2
Provides extension methods for registering Event Hubs clients in the services provided by the Hosting.IHostApplicationBuilder.
namespace Microsoft.Extensions.Hosting;
public static class AspireEventHubsExtensions
{
// ...
}
AddAzureEventHubBufferedProducerClient(IHostApplicationBuilder, string, Action<AzureMessagingEventHubsBufferedProducerSettings>, Action<IAzureClientBuilder<EventHubBufferedProducerClient, EventHubBufferedProducerClientOptions>>)extension
Registers Producer.EventHubBufferedProducerClient as a singleton in the services provided by the builder.
AddAzureEventHubConsumerClient(IHostApplicationBuilder, string, Action<AzureMessagingEventHubsConsumerSettings>, Action<IAzureClientBuilder<EventHubConsumerClient, EventHubConsumerClientOptions>>)extension
Registers Consumer.EventHubConsumerClient as a singleton in the services provided by the builder.
AddAzureEventHubProducerClient(IHostApplicationBuilder, string, Action<AzureMessagingEventHubsProducerSettings>, Action<IAzureClientBuilder<EventHubProducerClient, EventHubProducerClientOptions>>)extension
Registers Producer.EventHubProducerClient as a singleton in the services provided by the builder.
AddAzureEventProcessorClient(IHostApplicationBuilder, string, Action<AzureMessagingEventHubsProcessorSettings>, Action<IAzureClientBuilder<EventProcessorClient, EventProcessorClientOptions>>)extension
Registers EventHubs.EventProcessorClient as a singleton in the services provided by the builder.
AddAzurePartitionReceiverClient(IHostApplicationBuilder, string, Action<AzureMessagingEventHubsPartitionReceiverSettings>, Action<IAzureClientBuilder<PartitionReceiver, PartitionReceiverOptions>>)extension
Registers Primitives.PartitionReceiver as a singleton in the services provided by the builder.
AddKeyedAzureEventHubBufferedProducerClient(IHostApplicationBuilder, string, Action<AzureMessagingEventHubsBufferedProducerSettings>, Action<IAzureClientBuilder<EventHubBufferedProducerClient, EventHubBufferedProducerClientOptions>>)extension
Registers Producer.EventHubBufferedProducerClient as a singleton for given name in the services provided by the builder.
AddKeyedAzureEventHubConsumerClient(IHostApplicationBuilder, string, Action<AzureMessagingEventHubsConsumerSettings>, Action<IAzureClientBuilder<EventHubConsumerClient, EventHubConsumerClientOptions>>)extension
Registers Consumer.EventHubConsumerClient as a singleton for given name in the services provided by the builder.
AddKeyedAzureEventHubProducerClient(IHostApplicationBuilder, string, Action<AzureMessagingEventHubsProducerSettings>, Action<IAzureClientBuilder<EventHubProducerClient, EventHubProducerClientOptions>>)extension
Registers Producer.EventHubProducerClient as a singleton for given name in the services provided by the builder.
AddKeyedAzureEventProcessorClient(IHostApplicationBuilder, string, Action<AzureMessagingEventHubsProcessorSettings>, Action<IAzureClientBuilder<EventProcessorClient, EventProcessorClientOptions>>)extension
Registers EventHubs.EventProcessorClient as a singleton for given name in the services provided by the builder.
AddKeyedAzurePartitionReceiverClient(IHostApplicationBuilder, string, Action<AzureMessagingEventHubsPartitionReceiverSettings>, Action<IAzureClientBuilder<PartitionReceiver, PartitionReceiverOptions>>)extension
Registers Primitives.PartitionReceiver as a singleton for given name in the services provided by the builder.
View all methods