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.​HostingAbstractionsHostBuilderExtensions

Assembly: Microsoft.Extensions.Hosting.Abstractions

Inheritance: object → HostingAbstractionsHostBuilderExtensions

Provides extension methods for the <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder" /> from the hosting abstractions package.

Methods

public static IHost
Start​(IHostBuilder hostBuilder)
Builds and starts the host.
Returns The started <see cref="T:Microsoft.Extensions.Hosting.IHost" /> .
hostBuilder The <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder" /> to start.
StartAsync​(IHostBuilder hostBuilder, System.​Threading.​CancellationToken cancellationToken = null)
Builds and starts the host.
Returns The started <see cref="T:Microsoft.Extensions.Hosting.IHost" /> .
hostBuilder The <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder" /> to start.
cancellationToken A <see cref="T:System.Threading.CancellationToken" /> that can be used to cancel the start.
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