Share via


RazorComponentsEndpointConventionBuilder Class

Definition

Builds conventions that will be used for customization of EndpointBuilder instances.

public sealed class RazorComponentsEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
type RazorComponentsEndpointConventionBuilder = class
    interface IEndpointConventionBuilder
Public NotInheritable Class RazorComponentsEndpointConventionBuilder
Implements IEndpointConventionBuilder
Inheritance
RazorComponentsEndpointConventionBuilder
Implements

Methods

Add(Action<EndpointBuilder>)

Adds the specified convention to the builder. Conventions are used to customize EndpointBuilder instances.

Finally(Action<EndpointBuilder>)

Registers the specified convention for execution after conventions registered via Add(Action<EndpointBuilder>)

Extension Methods

AddAdditionalAssemblies(RazorComponentsEndpointConventionBuilder, Assembly[])

Adds the given additional assemblies to the component application.

WithStaticAssets(RazorComponentsEndpointConventionBuilder, String)

Sets a ResourceAssetCollection and ImportMapDefinition metadata for the component application.

DisableRequestTimeout(IEndpointConventionBuilder)

Disables request timeout on the endpoint(s).

WithRequestTimeout(IEndpointConventionBuilder, RequestTimeoutPolicy)

Specifies a timeout policy for to the endpoint(s).

WithRequestTimeout(IEndpointConventionBuilder, String)

Specifies a timeout policy for to the endpoint(s).

WithRequestTimeout(IEndpointConventionBuilder, TimeSpan)

Specifies a timeout for the endpoint(s).

ShortCircuit(IEndpointConventionBuilder, Nullable<Int32>)

Short circuit the endpoint(s). The execution of the endpoint will happen in UseRouting middleware instead of UseEndpoint.

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder, Action<ServerComponentsEndpointOptions>)

Maps the Blazor Hub to the default path.

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder)

Configures the application to support the InteractiveServer render mode.

AddInteractiveWebAssemblyRenderMode(RazorComponentsEndpointConventionBuilder, Action<WebAssemblyComponentsEndpointOptions>)

Configures the application to support the InteractiveWebAssembly render mode.

Applies to