Bagikan melalui


ServerSideBlazorBuilderExtensions.AddHubOptions Metode

Definisi

Menambahkan opsi hub untuk konfigurasi SignalR Hub yang digunakan oleh Server-Side Blazor.

public static Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder AddHubOptions (this Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder builder, Action<Microsoft.AspNetCore.SignalR.HubOptions> configure);
static member AddHubOptions : Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder * Action<Microsoft.AspNetCore.SignalR.HubOptions> -> Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder
<Extension()>
Public Function AddHubOptions (builder As IServerSideBlazorBuilder, configure As Action(Of HubOptions)) As IServerSideBlazorBuilder

Parameter

configure
Action<HubOptions>

Panggilan balik untuk mengonfigurasi opsi hub.

Mengembalikan

IServerSideBlazorBuilder.

Berlaku untuk