|
@@ -7,6 +7,7 @@ using System.Collections.Concurrent;
|
|
|
using System.Text.Json;
|
|
|
using System.Text.Json.Serialization;
|
|
|
using System.IO;
|
|
|
+using System.Threading.Tasks;
|
|
|
namespace TEAMModelOS.SDK.DI
|
|
|
{
|
|
|
public class AzureCosmosFactory
|
|
@@ -85,10 +86,10 @@ namespace TEAMModelOS.SDK.DI
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public override Stream ToStream<T>(T input)
|
|
|
+ public override Stream ToStream<T>(T input)
|
|
|
{
|
|
|
var outputStream = new MemoryStream();
|
|
|
- JsonSerializer.Serialize<T>(outputStream, input, _serializerOptions);
|
|
|
+ JsonSerializer.Serialize<T>(outputStream, input, _serializerOptions);
|
|
|
|
|
|
// A BREAKPOINT HERE AND A LOOK INSIDE 'outputStream' shows that ALL the fields have been serialized EXCEPT 'Id' or 'id.
|
|
|
outputStream.Position = 0;
|