Skip to content

Convert AzureEventHub and ConsumerGroup to Resources#7438

Merged
eerhardt merged 3 commits intomicrosoft:mainfrom
eerhardt:EventHubsResources
Feb 6, 2025
Merged

Convert AzureEventHub and ConsumerGroup to Resources#7438
eerhardt merged 3 commits intomicrosoft:mainfrom
eerhardt:EventHubsResources

Conversation

@eerhardt
Copy link
Copy Markdown
Member

@eerhardt eerhardt commented Feb 6, 2025

Description

This allows them to be referenceable and waitable in the future.

Also rename the classes and put them in the appropriate namespace.

Probably easiest to review each commit separately.

Contributes to #7407

Checklist

  • Is this feature complete?
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
  • Does the change make any security assumptions or guarantees?
    • No
  • Does the change require an update in our Aspire docs?
    • No

This allows them to be referenceable and waitable in the future.

Also rename the classes and put them in the appropriate namespace.

Contributes to microsoft#7407
@eerhardt eerhardt enabled auto-merge (squash) February 6, 2025 20:18
@eerhardt eerhardt merged commit 09de35e into microsoft:main Feb 6, 2025
@eerhardt eerhardt deleted the EventHubsResources branch February 6, 2025 23:14
eerhardt added a commit to eerhardt/aspire that referenced this pull request Feb 7, 2025
…rGroup keys

With microsoft#7438, EventHub Hub and Consumer Groups are Aspire Resources now, which means they can be referenced via WithReference.

In the future, the EventHubs Host integration will append these values to the connection string. This will allow the hub and consumer group names to be specified outside of the application. (Today they are hard-coded in both, or specified separately in config.) When they flow through the connection string, the EventHubName and ConsumerGroup properties are populated on the settings object.

Contributes to microsoft#7407
davidfowl added a commit that referenced this pull request Feb 7, 2025
…rGroup keys (#7453)

* Allow EventHub connection strings to work with EntityPath and ConsumerGroup keys

With #7438, EventHub Hub and Consumer Groups are Aspire Resources now, which means they can be referenced via WithReference.

In the future, the EventHubs Host integration will append these values to the connection string. This will allow the hub and consumer group names to be specified outside of the application. (Today they are hard-coded in both, or specified separately in config.) When they flow through the connection string, the EventHubName and ConsumerGroup properties are populated on the settings object.

Contributes to #7407

* Apply suggestions from code review

---------

Co-authored-by: David Fowler <davidfowl@gmail.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 9, 2025
@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Mar 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants