Table of Contents

Class HostingHostBuilderExtensions

Namespace
nanoFramework.Hosting
Assembly
nanoFramework.Hosting.dll

Extensions for IHostBuilder.

public static class HostingHostBuilderExtensions
Inheritance
HostingHostBuilderExtensions
Inherited Members

Methods

ConfigureServices(IHostBuilder, ServiceAction)

Adds services to the container. This can be called multiple times and the results will be additive.

public static IHostBuilder ConfigureServices(this IHostBuilder hostBuilder, ServiceAction configureDelegate)

Parameters

hostBuilder IHostBuilder

The IHostBuilder to configure.

configureDelegate ServiceAction

The delegate for configuring the IServiceCollection.

Returns

IHostBuilder

The same instance of the IHostBuilder for chaining.

UseDefaultServiceProvider(IHostBuilder, ProviderAction)

Specify the IServiceProvider to be the default one.

public static IHostBuilder UseDefaultServiceProvider(this IHostBuilder hostBuilder, ProviderAction configureDelegate)

Parameters

hostBuilder IHostBuilder

The IHostBuilder to configure.

configureDelegate ProviderAction

The delegate for configuring the ServiceProviderOptions.

Returns

IHostBuilder

The same instance of the IHostBuilder for chaining.