共用方式為


RazorComponentsEndpointConventionBuilder 類別

定義

建置將用於自訂實例的 EndpointBuilder 慣例。

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

方法

Add(Action<EndpointBuilder>)

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

Finally(Action<EndpointBuilder>)

註冊指定的慣例,以在透過 註冊慣例之後執行 Add(Action<EndpointBuilder>)

擴充方法

AddAdditionalAssemblies(RazorComponentsEndpointConventionBuilder, Assembly[])

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

DisableRequestTimeout(IEndpointConventionBuilder)

停用端點 () 的要求逾時。

WithRequestTimeout(IEndpointConventionBuilder, RequestTimeoutPolicy)

指定端點 () 逾時原則。

WithRequestTimeout(IEndpointConventionBuilder, String)

指定端點 () 逾時原則。

WithRequestTimeout(IEndpointConventionBuilder, TimeSpan)

指定端點 () 的逾時。

ShortCircuit(IEndpointConventionBuilder, Nullable<Int32>)

縮短端點 () 。 端點的執行會在 UseRouting 中介軟體中發生,而不是 UseEndpoint。

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder)

設定應用程式以支援 InteractiveServer 轉譯模式。

AddInteractiveWebAssemblyRenderMode(RazorComponentsEndpointConventionBuilder, Action<WebAssemblyComponentsEndpointOptions>)

設定應用程式以支援 InteractiveWebAssembly 轉譯模式。

適用於