Skip to content

[Breaking change]: IDistributedApplicationTestingBuilder API change #2616

@ReubenBond

Description

@ReubenBond

Description

In Aspire 9.1, IDistributedApplicationTestingBuilder was changed to inherit from IDistributedApplicationBuilder, IAsyncDisposable, and IDisposable.

Version

Other (please put exact version in description textbox)

Previous behavior

Previously, it inherited from nothing.

New behavior

IDistributedApplicationTestingBuilder was changed to inherit from IDistributedApplicationBuilder, IAsyncDisposable, and IDisposable.

Type of breaking change

  • Binary incompatible: Existing binaries might encounter a breaking change in behavior, such as failure to load or execute, and if so, require recompilation.
  • Source incompatible: When recompiled using the new SDK or component or to target the new runtime, existing source code might require source changes to compile successfully.
  • Behavioral change: Existing binaries might behave differently at run time.

Reason for change

Methods accepting a parameter of type IDistributedApplicationBuilder now work with IDistributedApplicationTestingBuilder, giving developers a consistent API surface.

Recommended action

Recompile your code if necessary. If you are implementing IDistributedApplicationTestingBuilder yourself (which would be highly unusual), then you will need to implement the new interfaces also.

Affected APIs

IDistributedApplicationTestingBuilder


Associated WorkItem - 373400

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.Pri1High priority, do before Pri2 and Pri3doc-ideaIndicates issues that are suggestions for new topics [org][type][category]in-prokr-freshnessOKR: Freshness of content⛓️‍💥 breaking-changeIssues or PRs tracking breaking changes.📦 release-9.1Used to track doc updates for release 9.1 of .NET Aspire.

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions