Sdílet prostřednictvím


ServerRazorComponentsEndpointConventionBuilderExtensions.AddInteractiveServerRenderMode Metoda

Definice

Přetížení

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder)

Nakonfiguruje aplikaci tak, aby podporovala režim vykreslování InteractiveServer.

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder, Action<ServerComponentsEndpointOptions>)

Mapuje Hub Blazor na výchozí cestu.

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder)

Zdroj:
ServerRazorComponentsEndpointConventionBuilderExtensions.cs

Nakonfiguruje aplikaci tak, aby podporovala režim vykreslování InteractiveServer.

public static Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder AddInteractiveServerRenderMode (this Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder builder);
static member AddInteractiveServerRenderMode : Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder -> Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder
<Extension()>
Public Function AddInteractiveServerRenderMode (builder As RazorComponentsEndpointConventionBuilder) As RazorComponentsEndpointConventionBuilder

Parametry

Návraty

RazorComponentsEndpointConventionBuilder.

Platí pro

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder, Action<ServerComponentsEndpointOptions>)

Mapuje Hub Blazor na výchozí cestu.

public static Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder AddInteractiveServerRenderMode (this Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder builder, Action<Microsoft.AspNetCore.Components.Server.ServerComponentsEndpointOptions> configure);
static member AddInteractiveServerRenderMode : Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder * Action<Microsoft.AspNetCore.Components.Server.ServerComponentsEndpointOptions> -> Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder
<Extension()>
Public Function AddInteractiveServerRenderMode (builder As RazorComponentsEndpointConventionBuilder, configure As Action(Of ServerComponentsEndpointOptions)) As RazorComponentsEndpointConventionBuilder

Parametry

configure
Action<ServerComponentsEndpointOptions>

Zpětné volání pro konfiguraci možností koncového bodu serveru.

Návraty

ComponentEndpointConventionBuilder.

Platí pro