語言

RazorComponentsEndpointConventionBuilder 類別

定義

建立用於自訂 EndpointBuilder 實例的慣例。

public sealed class RazorComponentsEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
type RazorComponentsEndpointConventionBuilder = class
    interface IEndpointConventionBuilder
Public NotInheritable Class RazorComponentsEndpointConventionBuilder
Implements IEndpointConventionBuilder
繼承
RazorComponentsEndpointConventionBuilder
實作

方法

名稱 Description
Add(Action<EndpointBuilder>)

將指定的慣例加入至產生器。 慣例用來自訂 EndpointBuilder 實例。

Finally(Action<EndpointBuilder>)

在透過以下方式註冊後,登錄指定的執行慣例 Add(Action<EndpointBuilder>)

擴充方法

名稱 Description
AddAdditionalAssemblies(RazorComponentsEndpointConventionBuilder, Assembly[])

將指定的其他元件新增至元件應用程式。

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder, Action<ServerComponentsEndpointOptions>)

將 Blazor Hub 映射到預設路徑。

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder)

設定應用程式以支援 InteractiveServer 渲染模式。

AddInteractiveWebAssemblyRenderMode(RazorComponentsEndpointConventionBuilder, Action<WebAssemblyComponentsEndpointOptions>)

設定應用程式以支援 InteractiveWebAssembly 渲染模式。

DisableRequestTimeout(IEndpointConventionBuilder)

停用端點的要求逾時。

ShortCircuit(IEndpointConventionBuilder, Nullable<Int32>)

縮短端點的電路。 端點的執行會發生在UseRouting中間件中,而不是UseEndpoint。

WithBrowserOptions(RazorComponentsEndpointConventionBuilder, Action<BrowserOptions>)

配置 A BrowserOptions ,該會以 DOM 註解形式發送給瀏覽器,適用於所有 Razor 元件端點。

WithRequestTimeout(IEndpointConventionBuilder, RequestTimeoutPolicy)

指定端點的逾時原則。

WithRequestTimeout(IEndpointConventionBuilder, String)

指定端點的逾時原則。

WithRequestTimeout(IEndpointConventionBuilder, TimeSpan)

指定端點的逾時。

WithStaticAssets(RazorComponentsEndpointConventionBuilder, String)

為元件應用程式設定 a ResourceAssetCollection 和 ImportMapDefinition metadata。

適用於