ServerRazorComponentsEndpointConventionBuilderExtensions.AddInteractiveServerRenderMode 方法

定义

重载

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder)

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

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder, Action<ServerComponentsEndpointOptions>)

将 Blazor Hub 映射到默认路径。

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder)

Source:
ServerRazorComponentsEndpointConventionBuilderExtensions.cs

将应用程序配置为支持 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

参数

返回

RazorComponentsEndpointConventionBuilder

适用于

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder, Action<ServerComponentsEndpointOptions>)

将 Blazor Hub 映射到默认路径。

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

参数

configure
Action<ServerComponentsEndpointOptions>

用于配置服务器终结点选项的回调。

返回

ComponentEndpointConventionBuilder

适用于