语言

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[])

将给定的其他程序集添加到组件应用程序。

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder, Action<ServerComponentsEndpointOptions>)

将 Blazor Hub 映射到默认路径。

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder)

将应用程序配置为支持 InteractiveServer 呈现模式。

AddInteractiveWebAssemblyRenderMode(RazorComponentsEndpointConventionBuilder, Action<WebAssemblyComponentsEndpointOptions>)

将应用程序配置为支持 InteractiveWebAssembly 呈现模式。

DisableRequestTimeout(IEndpointConventionBuilder)

禁用终结点上的请求超时。

ShortCircuit(IEndpointConventionBuilder, Nullable<Int32>)

对终结点进行短路。 终结点的执行将在 UseRouting 中间件而不是 UseEndpoint 中发生。

WithBrowserConfiguration(RazorComponentsEndpointConventionBuilder, Action<BrowserConfiguration>)

BrowserConfiguration为所有 Razor 组件终结点配置将作为 DOM 注释发送到浏览器的 A。

WithRequestTimeout(IEndpointConventionBuilder, RequestTimeoutPolicy)

指定终结点的超时策略。

WithRequestTimeout(IEndpointConventionBuilder, String)

指定终结点的超时策略。

WithRequestTimeout(IEndpointConventionBuilder, TimeSpan)

指定终结点的超时值。

WithStaticAssets(RazorComponentsEndpointConventionBuilder, String)

设置组件应用程序的元数据ResourceAssetCollectionImportMapDefinition

适用于