Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Owen Pearson <[email protected]>
  • Loading branch information
sacOO7 and owenpearson authored Aug 30, 2023
1 parent e57237c commit 078011d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 078011d

Please sign in to comment.