اقرأ باللغة الإنجليزية

مشاركة عبر


WebAssemblyHostBuilder Class

Definition

A builder for configuring and creating a WebAssemblyHost.

C#
public sealed class WebAssemblyHostBuilder
Inheritance
WebAssemblyHostBuilder

Properties

Configuration

Gets an WebAssemblyHostConfiguration that can be used to customize the application's configuration sources and read configuration attributes.

HostEnvironment

Gets information about the app's host environment.

Logging

Gets the logging builder for configuring logging services.

RootComponents

Gets the collection of root component mappings configured for the application.

Services

Gets the service collection.

Methods

Build()

Builds a WebAssemblyHost instance based on the configuration of this builder.

ConfigureContainer<TBuilder>(IServiceProviderFactory<TBuilder>, Action<TBuilder>)

Registers a IServiceProviderFactory<TContainerBuilder> instance to be used to create the IServiceProvider.

CreateDefault(String[])

Creates an instance of WebAssemblyHostBuilder using the most common conventions and settings.

Applies to

منتج الإصدارات
ASP.NET Core 3.1, 5.0, 6.0, 7.0, 8.0, 9.0