Description
The OnCompileFinished
property is an event handler that is invoked when the compilation process within a CompileGroup
ends. This property allows you to assign a callback method that will be executed once the compilation is complete, regardless of whether it was successful or not.
Usage
To use the OnCompileFinished
property, assign a method to it that matches the System.Action
delegate signature. This method will be called automatically when the compilation process finishes.
Example
// Example of using OnCompileFinished
CompileGroup compileGroup = new CompileGroup();
// Assign a method to be called when compilation finishes
compileGroup.OnCompileFinished = () =>
{
Console.WriteLine("Compilation has finished.");
};
// Start the compilation process
await compileGroup.BuildAsync();
// The assigned method will be called once the compilation is complete.