DockerfileBuilderCallbackAnnotation.AddCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a callback function to be invoked during the Dockerfile build process.
public void AddCallback(Func<Aspire.Hosting.ApplicationModel.DockerfileBuilderCallbackContext,System.Threading.Tasks.Task> callback);
member this.AddCallback : Func<Aspire.Hosting.ApplicationModel.DockerfileBuilderCallbackContext, System.Threading.Tasks.Task> -> unit
Public Sub AddCallback (callback As Func(Of DockerfileBuilderCallbackContext, Task))
Parameters
- callback
- Func<DockerfileBuilderCallbackContext,Task>
The callback function to add.