imperugo / StackExchange.Redis.Extensions

MIT License
607 stars 177 forks source link

How can I configure the serializer to handle the polymorphism? #561

Closed nicholasyin closed 9 months ago

nicholasyin commented 1 year ago

using NewtonsoftSerializer, for instance.

imperugo commented 9 months ago

Hi @nicholasyin

The NewtonsoftSerializer has a specific constructor that you can use where you can specify your configuration.

You can see it here

So, when you register your DI container or whatever other approach you're using.