Table of Contents

Class NLightningFormatterResolver

Namespace
NLightning.Transport.Ipc.MessagePack
Assembly
NLightning.Transport.Ipc.dll
public class NLightningFormatterResolver : IFormatterResolver
Inheritance
NLightningFormatterResolver
Implements
IFormatterResolver
Inherited Members

Fields

Instance

public static readonly IFormatterResolver Instance

Field Value

IFormatterResolver

Methods

GetFormatter<T>()

Gets an MessagePack.Formatters.IMessagePackFormatter<T> instance that can serialize or deserialize some type T.

public IMessagePackFormatter<T>? GetFormatter<T>()

Returns

IMessagePackFormatter<T>

A formatter, if this resolver supplies one for type T; otherwise null.

Type Parameters

T

The type of value to be serialized or deserialized.