=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -17,6 +17,7 @@ namespace adas_core.Domain.Models.BsonConverters;
|
||||
/// <c>Dictionary<string, object></c>, providing a focused implementation for
|
||||
/// BSON-based persistence and data interchange scenarios.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=169ec09 -->
|
||||
public class DictionaryBsonConverter : SerializerBase<Dictionary<string, object>>
|
||||
{
|
||||
/// <summary>
|
||||
@@ -27,6 +28,7 @@ public class DictionaryBsonConverter : SerializerBase<Dictionary<string, object>
|
||||
/// <param name="context">The BSON deserialization context providing the reader used to traverse the BSON payload.</param>
|
||||
/// <param name="args">The BSON deserialization arguments carrying additional configuration for the deserialization process.</param>
|
||||
/// <returns>A dictionary containing the deserialized key/value pairs extracted from the BSON document.</returns>
|
||||
/// <!-- aidoc:v1 sig=03fa40b body=034476c -->
|
||||
public override Dictionary<string, object> Deserialize(BsonDeserializationContext context,
|
||||
BsonDeserializationArgs args)
|
||||
{
|
||||
@@ -136,6 +138,7 @@ public class DictionaryBsonConverter : SerializerBase<Dictionary<string, object>
|
||||
/// <param name="context">The BSON serialization context that provides the writer used to emit the document.</param>
|
||||
/// <param name="args">The BSON serialization arguments associated with the current operation.</param>
|
||||
/// <param name="value">The dictionary whose entries are written as fields of the BSON document.</param>
|
||||
/// <!-- aidoc:v1 sig=b562ad9 body=3da66f6 -->
|
||||
public override void Serialize(BsonSerializationContext context, BsonSerializationArgs args,
|
||||
Dictionary<string, object> value)
|
||||
{
|
||||
@@ -163,6 +166,7 @@ public class DictionaryBsonConverter : SerializerBase<Dictionary<string, object>
|
||||
/// <returns><c>true</c> if the key-value pair was successfully serialized; otherwise, <c>false</c>.</returns>
|
||||
/// <exception cref="BsonSerializationException">Thrown when a BSON array contains an element whose BSON type is not supported.</exception>
|
||||
/// <exception cref="NotSupportedException">Thrown when the default branch encounters a BSON value type that is not supported.</exception>
|
||||
/// <!-- aidoc:v1 sig=8d659cd body=35e207b -->
|
||||
private static bool TrySerializeKeyValuePair(KeyValuePair<string, object> item, IBsonWriter writer)
|
||||
{
|
||||
writer.WriteName(item.Key);
|
||||
|
||||
Reference in New Issue
Block a user