INativeBindingGenerator.GenerateAsync
Section titled “INativeBindingGenerator.GenerateAsync”
- Generates or verifies the requested closure under publication ownership.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build.Toolchains
Declaration
Section titled “Declaration”System.Threading.Tasks.ValueTask<Inno.Build.Toolchains.NativeBindingGenerationResult> Inno.Build.Toolchains.INativeBindingGenerator.GenerateAsync(Inno.Build.Toolchains.NativeBuildContext context, Inno.Build.Toolchains.NativeBindingGenerationRequest request, System.Threading.CancellationToken cancellationToken)Parameters
Section titled “Parameters”Parameter context: The borrowed operation owning frozen inputs, tool selection and statistics. Configuration path variables must resolve from its selected toolchain without changing process state.
Parameter request: The immutable target, component closure and publication policy.
Parameter cancellationToken: Cancels preparation; active work must drain before returning.
Returns
Section titled “Returns”An owned complete immutable map indexed by Native owner project, never a partial closure. Dispose the result only after all generated-source and native-bridge consumers finish.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Inputs change during preparation, a required frozen SDK value is absent, or required generator capabilities are unavailable.
Exception T:System.IO.InvalidDataException: A definition or generated output fails its declared contract.
Exception T:System.OperationCanceledException: The request was canceled and its active work has completed cleanup.