Table of Contents

Class ProtobufSerializationRegistry

Namespace
Microsoft.AutoGen.Core.Grpc
Assembly
Microsoft.AutoGen.Core.Grpc.dll
public class ProtobufSerializationRegistry : IProtoSerializationRegistry
Inheritance
ProtobufSerializationRegistry
Implements
Inherited Members

Properties

TypeNameResolver

public ITypeNameResolver TypeNameResolver { get; }

Property Value

ITypeNameResolver

Methods

Exists(Type)

public bool Exists(Type type)

Parameters

type Type

Returns

bool

GetSerializer(string)

public IProtobufMessageSerializer? GetSerializer(string typeName)

Parameters

typeName string

Returns

IProtobufMessageSerializer

GetSerializer(Type)

Gets the serializer for the specified type.

public IProtobufMessageSerializer? GetSerializer(Type type)

Parameters

type Type

The type to get the serializer for.

Returns

IProtobufMessageSerializer

The serializer for the specified type.

RegisterSerializer(Type, IProtobufMessageSerializer)

public void RegisterSerializer(Type type, IProtobufMessageSerializer serializer)

Parameters

type Type
serializer IProtobufMessageSerializer