WebAssemblyHostBuilderExtensions.UseDefaultServiceProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UseDefaultServiceProvider(WebAssemblyHostBuilder, Action<IWebAssemblyHostEnvironment,ServiceProviderOptions>) |
Configures the default service provider for the WebAssembly host. |
UseDefaultServiceProvider(WebAssemblyHostBuilder, Action<ServiceProviderOptions>) |
Configures the default service provider for the WebAssembly host. |
UseDefaultServiceProvider(WebAssemblyHostBuilder, Action<IWebAssemblyHostEnvironment,ServiceProviderOptions>)
Configures the default service provider for the WebAssembly host.
public static Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder UseDefaultServiceProvider(this Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder builder, Action<Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment,Microsoft.Extensions.DependencyInjection.ServiceProviderOptions> configure);
static member UseDefaultServiceProvider : Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder * Action<Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment, Microsoft.Extensions.DependencyInjection.ServiceProviderOptions> -> Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder
<Extension()>
Public Function UseDefaultServiceProvider (builder As WebAssemblyHostBuilder, configure As Action(Of IWebAssemblyHostEnvironment, ServiceProviderOptions)) As WebAssemblyHostBuilder
Parameters
- builder
- WebAssemblyHostBuilder
The WebAssemblyHostBuilder to configure.
A callback used to configure the ServiceProviderOptions with access to the host environment.
Returns
Applies to
UseDefaultServiceProvider(WebAssemblyHostBuilder, Action<ServiceProviderOptions>)
Configures the default service provider for the WebAssembly host.
public static Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder UseDefaultServiceProvider(this Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder builder, Action<Microsoft.Extensions.DependencyInjection.ServiceProviderOptions> configure);
static member UseDefaultServiceProvider : Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder * Action<Microsoft.Extensions.DependencyInjection.ServiceProviderOptions> -> Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder
<Extension()>
Public Function UseDefaultServiceProvider (builder As WebAssemblyHostBuilder, configure As Action(Of ServiceProviderOptions)) As WebAssemblyHostBuilder
Parameters
- builder
- WebAssemblyHostBuilder
The WebAssemblyHostBuilder to configure.
- configure
- Action<ServiceProviderOptions>
A callback used to configure the ServiceProviderOptions.