Compartir a través de


JsonProtocolDependencyInjectionExtensions.AddJsonProtocol Método

Definición

Sobrecargas

AddJsonProtocol<TBuilder>(TBuilder)

Habilita el protocolo JSON para SignalR.

AddJsonProtocol<TBuilder>(TBuilder, Action<JsonHubProtocolOptions>)

Habilita el protocolo JSON para SignalR y permite configurar las opciones del protocolo JSON.

AddJsonProtocol<TBuilder>(TBuilder)

Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs

Habilita el protocolo JSON para SignalR.

public static TBuilder AddJsonProtocol<TBuilder> (this TBuilder builder) where TBuilder : Microsoft.AspNetCore.SignalR.ISignalRBuilder;
static member AddJsonProtocol : 'Builder -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.SignalR.ISignalRBuilder)
<Extension()>
Public Function AddJsonProtocol(Of TBuilder As ISignalRBuilder) (builder As TBuilder) As TBuilder

Parámetros de tipo

TBuilder

Parámetros

builder
TBuilder

ISignalRBuilder que representa el servidor signalR al que se va a agregar compatibilidad con el protocolo JSON.

Devoluciones

TBuilder

El valor de builder

Comentarios

Esto no tiene ningún efecto si el protocolo JSON ya se ha habilitado.

Se aplica a

AddJsonProtocol<TBuilder>(TBuilder, Action<JsonHubProtocolOptions>)

Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs
Source:
JsonProtocolDependencyInjectionExtensions.cs

Habilita el protocolo JSON para SignalR y permite configurar las opciones del protocolo JSON.

public static TBuilder AddJsonProtocol<TBuilder> (this TBuilder builder, Action<Microsoft.AspNetCore.SignalR.JsonHubProtocolOptions> configure) where TBuilder : Microsoft.AspNetCore.SignalR.ISignalRBuilder;
static member AddJsonProtocol : 'Builder * Action<Microsoft.AspNetCore.SignalR.JsonHubProtocolOptions> -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.SignalR.ISignalRBuilder)
<Extension()>
Public Function AddJsonProtocol(Of TBuilder As ISignalRBuilder) (builder As TBuilder, configure As Action(Of JsonHubProtocolOptions)) As TBuilder

Parámetros de tipo

TBuilder

Parámetros

builder
TBuilder

ISignalRBuilder que representa el servidor signalR al que se va a agregar compatibilidad con el protocolo JSON.

configure
Action<JsonHubProtocolOptions>

Delegado que se puede usar para configurar el JsonHubProtocolOptions

Devoluciones

TBuilder

El valor de builder

Comentarios

Se aplicarán todas las opciones configuradas aquí, incluso si el protocolo JSON ya se ha registrado en el servidor.

Se aplica a