Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureEventHubResource.AddConsumerGroup

Method
📦 Aspire.Hosting.Azure.EventHubs v17.0.0
type AzureEventHubResource interface {
// ... omitted for brevity
AddConsumerGroup(
name string,
options ...*AddConsumerGroupOptions,
) AzureEventHubConsumerGroupResource
}

Signature

methodAddConsumerGroupbuilder
Adds an Azure Event Hub Consumer Group resource to the application model.
AddConsumerGroup(
name string,
options ...*AddConsumerGroupOptions,
) AzureEventHubConsumerGroupResource
namestringThe name of the Event Hub Consumer Group resource.
options...*AddConsumerGroupOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddConsumerGroupOptions argument.

GroupName*stringThe name of the Consumer Group. If not provided, this defaults to the same value as name.
AzureEventHubConsumerGroupResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: