DotnetProgramBuildCompletionAnnotation
Classsealednet10.0
Provides an optional successful-build barrier for consumers of a .NET program's build output.
namespace Aspire.Hosting.ApplicationModel;
public sealed class DotnetProgramBuildCompletionAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...}Remarks
Section titled Remarks Consumers invoke the callback before using build output, without waiting for the application's runtime dependencies or readiness. The build owner must support calls before its build plan is finalized, propagate build failures and cancellation, and observe the current build attempt on each invocation. A missing annotation means that the resource does not provide coordinated build readiness.
Constructors1
Section titled Constructors Initializes a new instance of the
DotnetProgramBuildCompletionAnnotation class. Properties1
Section titled PropertiesCallbackgetFunc<IServiceProvider, CancellationToken, Task> Gets the callback that waits for the current build to complete successfully.