kekyo / DupeNukem

WebView attachable full-duplex asynchronous interoperable independent messaging library between .NET and JavaScript.
Apache License 2.0
18 stars 0 forks source link

Expose JsonSerializerSettings #3

Closed kekyo closed 2 years ago

kekyo commented 2 years ago

Make customizable for marshaling.

kekyo commented 2 years ago

We can customize JsonSerializer settings below:

// Get containing default settings.
var serializer = Messenger.GetDefaultJsonSerializer();

// (Customize it)

// Construct:
var messenger = new Messenger(serializer);