Watch Aspire live streamsDocsTry Aspire

DotnetProgramBuildCompletionAnnotation Properties

ClassProperties1 member
Provides an optional successful-build barrier for consumers of a .NET program's build output.
CallbackSection titled CallbackFunc<IServiceProvider, CancellationToken, Task>
Gets the callback that waits for the current build to complete successfully.
public Func<IServiceProvider, CancellationToken, Task> Callback { get; }
Invoke this callback for each operation; do not cache its returned task across retries or rebuilds. Cancellation of a consumer must not cancel the build or other consumers.