From 078011dd672f7979018853a50ee4981ecdd6bf90 Mon Sep 17 00:00:00 2001 From: sachin shinde Date: Wed, 30 Aug 2023 23:15:20 +0530 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Owen Pearson <48608556+owenpearson@users.noreply.github.com> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e65923749..9c489e184 100644 --- a/README.md +++ b/README.md @@ -235,8 +235,8 @@ if (result.IsFailure) } ``` -- When published message is a dotnet object instance, internal newtonsoft will apply default serialization settings. -- If received message has unwanted serialization, publish it as a serialized string instead by applying custom serialization settings externally. +- When calling `channel.Publish` with a dotnet object instance as the message data, the library will use the Newtonsoft Json.NET library to serialize the message with default serialization settings. +- If you need to use custom seralization settings, you can apply the serialization yourself and send the resulting string as the message data: ```csharp var serializedData = JsonConvert.SerializeObject(message,