WebAssemblyHostBuilder 類別

定義

用於設定和建立 的建置 WebAssemblyHost 器。

public ref class WebAssemblyHostBuilder sealed
public sealed class WebAssemblyHostBuilder
type WebAssemblyHostBuilder = class
Public NotInheritable Class WebAssemblyHostBuilder
繼承
WebAssemblyHostBuilder

屬性

Configuration

取得 , WebAssemblyHostConfiguration 可用來自訂應用程式的組態來源和讀取組態屬性。

HostEnvironment

取得應用程式主機環境的相關資訊。

Logging

取得用於設定記錄服務的記錄產生器。

RootComponents

取得為應用程式設定的根元件對應集合。

Services

取得服務集合。

方法

Build()

WebAssemblyHost根據這個產生器的組態來建置實例。

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

IServiceProviderFactory<TContainerBuilder>註冊要用來建立 的 IServiceProvider 實例。

CreateDefault(String[])

使用最常見的慣例和設定,建立 的 WebAssemblyHostBuilder 實例。

適用於