HttpSelfHostServer

This commit is contained in:
2023-06-09 15:27:24 -07:00
parent afd4cf8efe
commit fb3c3ce699
31 changed files with 393 additions and 48 deletions

View File

@ -99,9 +99,7 @@ public class ProcessData : IProcessData
value = value.Replace("\"", "\\\"");
if (value.Contains("\n"))
value = value.Replace("\n", "<br />");
name = table.Columns[j].ColumnName.ToString();
if (name == ",")
name = "Title";
name = table.Columns[j].ColumnName.ToString().Trim();
if (name.Contains("\""))
name = name.Replace("\"", "\\\"");
if (name.Contains("\n"))
@ -134,7 +132,7 @@ public class ProcessData : IProcessData
FIBacklogMesa[]? fIBacklogMesaCollection = JsonSerializer.Deserialize<FIBacklogMesa[]>(json, new JsonSerializerOptions() { PropertyNameCaseInsensitive = true });
if (fIBacklogMesaCollection is null || !fIBacklogMesaCollection.Any())
throw new NullReferenceException();
json = JsonSerializer.Serialize(fIBacklogMesaCollection.OrderBy(l => l.Req), new JsonSerializerOptions() { WriteIndented = true });
json = JsonSerializer.Serialize(from l in fIBacklogMesaCollection orderby l.Req.Length, l.Req select l, new JsonSerializerOptions() { WriteIndented = true });
_Details.Add(json);
}