Skip to content

Commit

Permalink
Remove "Default" property from serializers
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSmoke committed Dec 17, 2024
1 parent ad45a7b commit 80a3b7d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/Queues/RabbitMq/src/RabbitMqClientOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class RabbitMqClientOptions : IOptions<RabbitMqClientOptions>
/// <summary>
/// The serializer to use for serializing and deserializing messages
/// </summary>
public IMessageSerializer Serializer { get; set; } = NewtonsoftJsonMessageSerializer.Default;
public IMessageSerializer Serializer { get; set; } = new NewtonsoftJsonMessageSerializer();

/// <summary>
/// The logger factory to enable logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ public NewtonsoftJsonMessageSerializer(JsonSerializerSettings settings)
_settings = settings;
}

public static readonly NewtonsoftJsonMessageSerializer Default = new();

private static JsonSerializerSettings GetDefaultSettings()
{
return new JsonSerializerSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ public SystemTextJsonMessageSerializer(JsonSerializerOptions options)
_options = options;
}

public static readonly SystemTextJsonMessageSerializer Default = new();

private static JsonSerializerOptions GetDefaultOptions()
{
return new JsonSerializerOptions
Expand Down

0 comments on commit 80a3b7d

Please sign in to comment.