The OnCompileStarted
property is an event handler that is invoked when a compilation process begins within a CompileGroup
. This property allows you to attach custom logic that should be executed at the start of the compilation process.
The OnCompileStarted
property is an event handler that is invoked when a compilation process begins within a CompileGroup
. This property allows you to attach custom logic that should be executed at the start of the compilation process.
To use the OnCompileStarted
property, assign a method or lambda expression to it that matches the System.Action
delegate signature. This method will be called whenever a compilation starts.
// Example of using OnCompileStarted CompileGroup compileGroup = new CompileGroup(); // Assign a method to the OnCompileStarted event compileGroup.OnCompileStarted = () => { // Custom logic to execute when compilation starts Log.Info("Compilation has started."); }; // Start a compilation process compileGroup.BuildAsync();