共用方式為


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 轉譯模式。

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder, Action<ServerComponentsEndpointOptions>)

將 Blazor Hub 對應至預設路徑。

AddInteractiveWebAssemblyRenderMode(RazorComponentsEndpointConventionBuilder, Action<WebAssemblyComponentsEndpointOptions>)

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

適用於