-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as not planned
Labels
8.xRelates to a 8.x client versionRelates to a 8.x client versionArea: TransportCategory: QuestionState: Awaiting ResponseState: Stale
Description
Once again there are breaking changes in a patch version.
Before the latest version, we had the following class:
internal class ExtendedSystemTextJsonSerializer : SystemTextJsonSerializer
{
public ExtendedSystemTextJsonSerializer(IElasticsearchClientSettings elasticsearchClientSettings)
: base(elasticsearchClientSettings)
{
JsonSerializerOptions options = DefaultSourceSerializer.CreateDefaultJsonSerializerOptions(includeDefaultConverters: true);
options.Converters.Add(new ObjectConverter());
Options = DefaultSourceSerializer.AddDefaultConverters(options);
}
protected JsonSerializerOptions Options { get; set; }
protected override JsonSerializerOptions CreateJsonSerializerOptions() => Options;
}
We were calling it as in the following code:
ElasticsearchClientSettings elasticsearchClientSettings = new(
nodePool,
sourceSerializer: (defaultSerializer, settings) =>
new ExtendedSystemTextJsonSerializer(settings));
How is this supposed to be transformed now in the latest version? We do not need the IElasticsearchClientSettings anymore?
Metadata
Metadata
Assignees
Labels
8.xRelates to a 8.x client versionRelates to a 8.x client versionArea: TransportCategory: QuestionState: Awaiting ResponseState: Stale