This commit is contained in:
Stef Heyenrath
2026-05-01 08:58:06 +02:00
parent 9277315ef9
commit 0677a6f525
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ namespace WireMock.Transformers;
[PublicAPI]
public class NewtonsoftJsonBodyTransformer(WireMockServerSettings settings) : IJsonBodyTransformer
{
private readonly NewtonsoftJsonConverter _jsonConverter = new();
private static readonly NewtonsoftJsonConverter _jsonConverter = new();
/// <inheritdoc />
public BodyData TransformBodyAsJson(

View File

@@ -17,7 +17,7 @@ namespace WireMock.Transformers;
[PublicAPI]
public class SystemTextJsonBodyTransformer() : IJsonBodyTransformer
{
private readonly SystemTextJsonConverter _jsonConverter = new();
private static readonly SystemTextJsonConverter _jsonConverter = new();
/// <inheritdoc />
public BodyData TransformBodyAsJson(