Search code examples
azure-service-fabric

How do I register a custom serializer in Service Fabric?


I have found couple of references to the "TryAddStateSerializer" method but it appears to be deprecated, and the examples provided don't seem to work anyway including this one GitHub Azure content.

How an I supposed to register my Custom serializer?


Solution

  • TryAddStateSerializer is currently the only way to do it. The API may change in the future but it is safe to use today.