Skip to content

Commit 618fc26

Browse files
CopilotReubenBond
andcommitted
Updated SystemTextJson serializer configuration example
Co-authored-by: ReubenBond <[email protected]>
1 parent 853f6be commit 618fc26

File tree

1 file changed

+1
-1
lines changed
  • src/Orleans.Serialization.SystemTextJson

1 file changed

+1
-1
lines changed

src/Orleans.Serialization.SystemTextJson/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var builder = Host.CreateApplicationBuilder(args)
2323
siloBuilder
2424
.UseLocalhostClustering()
2525
// Configure System.Text.Json as a serializer
26-
.AddSystemTextJsonSerializer();
26+
.AddSerializer(serializerBuilder => serializerBuilder.AddSystemTextJsonSerializer(type => type.Namespace.StartsWith("ExampleGrains")));
2727
});
2828

2929
// Run the host

0 commit comments

Comments
 (0)