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 呈现模式。

适用于