MsgPackProtocolDependencyInjectionExtensions.AddMessagePackProtocol Method

Definition

Overloads

AddMessagePackProtocol(ISignalRBuilder)

Enables the MsgPack protocol for SignalR.

AddMessagePackProtocol(ISignalRBuilder, Action<MessagePackHubProtocolOptions>)

Enables the MsgPack protocol for SignalR and allows options for the MsgPack protocol to be configured.

AddMessagePackProtocol(ISignalRBuilder)

Enables the MsgPack protocol for SignalR.

public static Microsoft.AspNetCore.SignalR.ISignalRBuilder AddMessagePackProtocol (this Microsoft.AspNetCore.SignalR.ISignalRBuilder builder);
static member AddMessagePackProtocol : Microsoft.AspNetCore.SignalR.ISignalRBuilder -> Microsoft.AspNetCore.SignalR.ISignalRBuilder
<Extension()>
Public Function AddMessagePackProtocol (builder As ISignalRBuilder) As ISignalRBuilder

Parameters

builder
ISignalRBuilder

The ISignalRBuilder representing the SignalR server to add MsgPack protocol support to.

Returns

ISignalRBuilder

The value of builder

Remarks

This has no effect if the MsgPack protocol has already been enabled.

Applies to

AddMessagePackProtocol(ISignalRBuilder, Action<MessagePackHubProtocolOptions>)

Enables the MsgPack protocol for SignalR and allows options for the MsgPack protocol to be configured.

public static Microsoft.AspNetCore.SignalR.ISignalRBuilder AddMessagePackProtocol (this Microsoft.AspNetCore.SignalR.ISignalRBuilder builder, Action<Microsoft.AspNetCore.SignalR.MessagePackHubProtocolOptions> configure);
static member AddMessagePackProtocol : Microsoft.AspNetCore.SignalR.ISignalRBuilder * Action<Microsoft.AspNetCore.SignalR.MessagePackHubProtocolOptions> -> Microsoft.AspNetCore.SignalR.ISignalRBuilder
<Extension()>
Public Function AddMessagePackProtocol (builder As ISignalRBuilder, configure As Action(Of MessagePackHubProtocolOptions)) As ISignalRBuilder

Parameters

builder
ISignalRBuilder

The ISignalRBuilder representing the SignalR server to add MsgPack protocol support to.

configure
Action<MessagePackHubProtocolOptions>

A delegate that can be used to configure the MessagePackHubProtocolOptions

Returns

ISignalRBuilder

The value of builder

Remarks

Any options configured here will be applied, even if the MsgPack protocol has already been registered with the server.

Applies to