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
IHostBuilderThe IHostBuilder to configure.
configureDelegate
ServiceActionThe 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
IHostBuilderThe IHostBuilder to configure.
configureDelegate
ProviderActionThe delegate for configuring the ServiceProviderOptions.
Returns
- IHostBuilder
The same instance of the IHostBuilder for chaining.