Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename the annotations #2523

Merged
merged 4 commits into from
Feb 29, 2024
Merged

Rename the annotations #2523

merged 4 commits into from
Feb 29, 2024

Conversation

davidfowl
Copy link
Member

@davidfowl davidfowl commented Feb 28, 2024

  • Reamed CustomResourceAnnotation to ResourceUpdatesAnnotation, and CustomResourceLogger to ResourceLoggerAnnotattion. Make it possible to have multiple subscribers to resource updates.
Microsoft Reviewers: Open in CodeFlow

- Reamed CustomResourceAnnotation to  ResourceUpdatesAnnotation, and CustomResourceLogger to ResourceLoggerAnnotattion. Make it possible to have multiple subscribers to resource updates.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Feb 28, 2024
@@ -30,14 +30,58 @@ public sealed class CustomResourceAnnotation(Func<CustomResourceSnapshot> initia
/// Updates the snapshot of the <see cref="CustomResourceSnapshot"/> for a resource.
/// </summary>
/// <param name="state">The new <see cref="CustomResourceSnapshot"/>.</param>
public async Task UpdateStateAsync(CustomResourceSnapshot state)
public Task UpdateStateAsync(CustomResourceSnapshot state)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we leaving this as "Async" in case we want to do something async in the future?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

@davidfowl davidfowl enabled auto-merge (squash) February 28, 2024 21:20
@mitchdenny
Copy link
Member

Looks good. Thanks for the rename :)

@davidfowl davidfowl merged commit 5d8d1e8 into main Feb 29, 2024
8 checks passed
@davidfowl davidfowl deleted the davidfowl/refactor-updates branch February 29, 2024 00:15
@github-actions github-actions bot locked and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants