LocalFileStorage

This commit is contained in:
2025-06-05 14:03:55 +02:00
parent 5e7080fd9d
commit ed4dc8fa75
24 changed files with 298 additions and 189 deletions

View File

@@ -1,4 +1,6 @@
using System;
using BeWo.Data.Access;
using BeWo.Service.ServiceUtils;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
@@ -50,9 +52,14 @@ namespace BeWo.Service.ServiceBehavior.JsonError
{
serializer.WriteObject(stream, jsonError);
stream.Position = 0;
ServiceHelper.WriteLogFile("LastJsonError.json.txt", stream);
stream.Position = 0;
using (var reader = new StreamReader(stream))
{
string jsonString = reader.ReadToEnd();
fault = Message.CreateMessage(version, null, new JsonBodyWriter(jsonString));
}
}