Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the
Elastic.Transport
library and adjusts theDefaultRequestResponseSerializer
andDefaultSourceSerializer
implementations accordingly.There are now multiple additional extension methods available in the
Elastic.Transport.Extensions
namespace which can be used for easiy (de-)serialization without having to know details about the underlaying serializer implementation:Deserialize(Serializer, JsonElement, Type, MemoryStreamFactory)
Deserialize(Serializer, JsonNode, Type, MemoryStreamFactory)
Deserialize(Serializer, ReadOnlySpan<Byte>, Type, MemoryStreamFactory)
Deserialize(Serializer, ReadOnlySpan<Char>, Type, MemoryStreamFactory)
Deserialize(Serializer, Utf8JsonReader&, Type, MemoryStreamFactory)
Deserialize<T>(Serializer, JsonElement, MemoryStreamFactory)
Deserialize<T>(Serializer, JsonNode, MemoryStreamFactory)
Deserialize<T>(Serializer, ReadOnlySpan<Byte>, MemoryStreamFactory)
Deserialize<T>(Serializer, ReadOnlySpan<Char>, MemoryStreamFactory)
Deserialize<T>(Serializer, Utf8JsonReader&, MemoryStreamFactory)
Serialize(Serializer, Object, Type, Utf8JsonWriter, MemoryStreamFactory, SerializationFormatting)
Serialize(Serializer, Object, Type, Utf8JsonWriter, SerializationFormatting)
Serialize<T>(Serializer, T, Utf8JsonWriter, MemoryStreamFactory, SerializationFormatting)
Serialize<T>(Serializer, T, Utf8JsonWriter, SerializationFormatting)
SerializeToBytes(Serializer, Object, Type, MemoryStreamFactory, SerializationFormatting)
SerializeToBytes(Serializer, Object, Type, SerializationFormatting)
SerializeToString(Serializer, Object, Type, MemoryStreamFactory, SerializationFormatting)
SerializeToString(Serializer, Object, Type, SerializationFormatting)
SerializeToBytes<T>(Serializer, T, MemoryStreamFactory, SerializationFormatting)
SerializeToString<T>(Serializer, T, MemoryStreamFactory, SerializationFormatting)
Related to #8359