Orleans: ProtobufSerializer

Created on 26 Mar 2018  路  3Comments  路  Source: dotnet/orleans

Hi
I called this method in the Client & Silo
.Configure<SerializationProviderOptions>(opt => opt.SerializationProviders.Add(typeof(ProtobufSerializer).GetTypeInfo()))
To ensure the Protobuf Serialization is work.What do I need to do?
Do I need to manually call serialization before calling Grains?

question

All 3 comments

@guopenglun ProtoBuf will be used automatically for any types which are generated by protoc. Those types will have a field called Parser of type Google.Protobuf.MessageParser.

Note that in 2.0-final we will also have ProtobufNetSerializer, so you can use the protobuf-net library instead

cool .
I just need use the protoc.exe to generated *.proto file.
it's very easy to use. I like the function.
Thank you very much.

Glad to hear it, @guopenglun! I'll close this issue for now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhoujijian picture zhoujijian  路  5Comments

centur picture centur  路  3Comments

galvesribeiro picture galvesribeiro  路  4Comments

SebastianStehle picture SebastianStehle  路  4Comments

gabikliot picture gabikliot  路  4Comments