src/SignalR/common/Protocols.Json/src/JsonProtocolDependencyInjectionExtensions.cs
/// <summary>
/// Enables the JSON protocol for SignalR.
/// </summary>
/// <remarks>
/// This has no effect if the JSON protocol has already been enabled.
/// </remarks>
/// <param name="builder">The <see cref="ISignalRBuilder"/> representing the SignalR server to add JSON protocol support to.</param>
/// <returns>The value of <paramref name="builder"/></returns>
Enables the JSON protocol for SignalR.
Enables the JSON protocol for SignalR .
public static TBuilder AddJsonProtocol<TBuilder>(this TBuilder builder) where TBuilder : ISignalRBuilder
        {
            builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, JsonHubProtocol>());
            return builder;
        }
public static TBuilder AddJsonProtocol < TBuilder > ( this TBuilder builder ) where TBuilder : ISignalRBuilder { builder . Services . TryAddEnumerable ( ServiceDescriptor . Singleton < IHubProtocol , JsonHubProtocol > ( ) ) ; return builder ; }
Enables the JSON protocol for SignalR.
Enables the JSON protocol for SignalR .
The value of
The value of
TBuilder
this
builder
The  representing the SignalR server to add JSON protocol support to.
The representing the SignalR server to add JSON protocol support to .
remarks
This has no effect if the JSON protocol has already been enabled.
This has no effect if the JSON protocol has already been enabled .