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
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา
.NET Aspire