LocalFileStorage
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user