Class ServiceCollectionExtensions
- Namespace
- Nerdbank.MessagePack.SignalR
- Assembly
- Nerdbank.MessagePack.SignalR.dll
Extension methods for configuring MessagePack hub protocol.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
AddMessagePackProtocol<TBuilder>(TBuilder, ITypeShapeProvider)
Adds the MessagePack hub protocol to the specified IServiceCollection, implemented by Nerdbank.MessagePack.
public static TBuilder AddMessagePackProtocol<TBuilder>(this TBuilder builder, ITypeShapeProvider typeShapeProvider) where TBuilder : ISignalRBuilder
Parameters
builder
TBuilderThe builder to add the protocol to.
typeShapeProvider
ITypeShapeProvider- The type shape provider for the parameter and return types used by invokable APIs.
Returns
- TBuilder
The builder so that additional calls can be chained.
Type Parameters
TBuilder
The type of the builder.
AddMessagePackProtocol<TBuilder>(TBuilder, ITypeShapeProvider, MessagePackSerializer?)
Adds the MessagePack hub protocol to the specified IServiceCollection, implemented by Nerdbank.MessagePack.
public static TBuilder AddMessagePackProtocol<TBuilder>(this TBuilder builder, ITypeShapeProvider typeShapeProvider, MessagePackSerializer? serializer) where TBuilder : ISignalRBuilder
Parameters
builder
TBuilderThe builder to add the protocol to.
typeShapeProvider
ITypeShapeProvider- The type shape provider for the parameter and return types used by invokable APIs.
serializer
MessagePackSerializer- The MessagePack serializer to use.
Returns
- TBuilder
The builder so that additional calls can be chained.
Type Parameters
TBuilder
The type of the builder.