Skip to content

Conversation

@eerhardt
Copy link
Member

Respond to feedback from #8140

@github-actions github-actions bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 20, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR follows up on database role assignment feedback by introducing an interface abstraction for role assignment contexts and updating related components to use the new interface.

  • Introduces IAddRoleAssignmentsContext to encapsulate role assignment details.
  • Updates multiple resources (AzureProvisioningResource, AzureCosmosDBResource, AzureRedisCacheResource) to accept the interface instead of a concrete implementation.
  • Renames variables and removes the deprecated AddRoleAssignmentsContext file to align with the new design.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Aspire.Hosting.Azure/IAddRoleAssignmentsContext.cs Added new interface for role assignments.
src/Aspire.Hosting.Azure.AppContainers/AddRoleAssignmentContext.cs New sealed implementation of the role assignment context.
src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppsInfrastructure.cs Renamed variable for clarity in resource iteration.
src/Aspire.Hosting.Azure/AzureProvisioningResource.cs Updated method signature to use IAddRoleAssignmentsContext.
src/Aspire.Hosting.Azure.CosmosDB/AzureCosmosDBResource.cs Updated method signature to use IAddRoleAssignmentsContext.
src/Aspire.Hosting.Azure.Redis/AzureRedisCacheResource.cs Updated method signature to use IAddRoleAssignmentsContext.
src/Aspire.Hosting.Azure/AddRoleAssignmentsContext.cs Removed obsolete concrete implementation file.

@davidfowl davidfowl merged commit 89e4cb7 into dotnet:main Mar 20, 2025
167 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 20, 2025
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.

3 participants