<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.9" />

Microsoft.Extensions.Hosting.HostBuilderContext

public class HostBuilderContext
Context containing the common services on the IHost. Some properties may be null until set by the IHost.
namespace Microsoft.Extensions.Hosting { public class HostBuilderContext { public IHostEnvironment HostingEnvironment { get; set; } public IConfiguration Configuration { get; set; } public IDictionary<object, object> Properties { get; } public HostBuilderContext(IDictionary<object, object> properties); } }