Func<string[], IHostBuilder>? HostBuilderFactory { get; init; }
Source
Gets an internal factory for a host builder before defaults and module callbacks are registered.
Remarks
Defaults to null, which preserves Host.CreateDefaultBuilder. Aspire testing supplies a per-call ownership observer here to capture resources acquired before a host can be returned. The factory must apply Generic Host defaults for the supplied normalized arguments and preserve the selected service-provider factory. This is an internal startup seam, not a public customization API.