HostBuilderContext Class

Definition

Context containing the common services on the IHost. Some properties may be null until set by the IHost.

public ref class HostBuilderContext
public class HostBuilderContext
type HostBuilderContext = class
Public Class HostBuilderContext
Inheritance
HostBuilderContext

Constructors

Name Description
HostBuilderContext(IDictionary<Object,Object>)

Initializes a new instance of HostBuilderContext.

Properties

Name Description
Configuration

The IConfiguration containing the merged configuration of the application and the IHost.

HostingEnvironment

The IHostEnvironment initialized by the IHost.

Properties

A central location for sharing state between components during the host building process.

Applies to