Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​Hosting.​HostBuilderContext

Assembly: Microsoft.Extensions.Hosting.Abstractions

Inheritance: object → HostBuilderContext

Context containing the common services on the <see cref="T:Microsoft.Extensions.Hosting.IHost" /> . Some properties may be null until set by the <see cref="T:Microsoft.Extensions.Hosting.IHost" /> .

Properties

Configuration
The <see cref="T:Microsoft.Extensions.Configuration.IConfiguration" /> containing the merged configuration of the application and the <see cref="T:Microsoft.Extensions.Hosting.IHost" /> .
HostingEnvironment
The <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment" /> initialized by the <see cref="T:Microsoft.Extensions.Hosting.IHost" /> .
Properties
A central location for sharing state between components during the host building process.

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object