Changes to Azure.Hosting
APIs
This document outlines the breaking changes in the Azure.Hosting
APIs for .NET Aspire 9.0 GA. The changes include the removal of experimental callbacks, renaming of several classes and methods, and a holistic review of the Azure Hosting APIs.
Version introduced
.NET Aspire 9.0 GA
Previous behavior
- Experimental callbacks were available for customization.
- The class
ResourceModuleConstruct
existed. - The class
AzureConstructResource
existed. - The method
ConfigureConstruct
was used for configuration.
New behavior
- Experimental callbacks are removed. Callers now use
builder.AddAzureStorage("storage").ConfigureConstruct(c => /* ... */)
for customization. ResourceModuleConstruct
is renamed toAzureResourceInfrastructure
.AzureConstructResource
is renamed toAzureProvisioningResource
.ConfigureConstruct
is renamed toConfigureInfrastructure
.
Type of breaking change
This change is a behavioral change.
Recommended action
Users should update their code to use the new class and method names. Specifically:
- Replace any usage of experimental callbacks with
builder.AddAzureStorage("storage").ConfigureConstruct(c => /* ... */)
. - Rename instances of
ResourceModuleConstruct
toAzureResourceInfrastructure
. - Rename instances of
AzureConstructResource
toAzureProvisioningResource
. - Rename instances of
ConfigureConstruct
toConfigureInfrastructure
.
Affected APIs
ResourceModuleConstruct
AzureConstructResource
ConfigureConstruct
- Experimental callbacks in
AzureStorageExtensions
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET Aspire