Share via


WebAssemblyHostBuilderExtensions.UseDefaultServiceProvider Method

Definition

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>)

Source:
WebassemblyHostBuilderExtensions.cs

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

configure
Action<IWebAssemblyHostEnvironment,ServiceProviderOptions>

A callback used to configure the ServiceProviderOptions with access to the host environment.

Returns

The WebAssemblyHostBuilder.

Applies to

UseDefaultServiceProvider(WebAssemblyHostBuilder, Action<ServiceProviderOptions>)

Source:
WebassemblyHostBuilderExtensions.cs

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

configure
Action<ServiceProviderOptions>

A callback used to configure the ServiceProviderOptions.

Returns

The WebAssemblyHostBuilder.

Applies to