Compare commits
2
Commits
9c767ec551
...
8aa295779c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8aa295779c | ||
|
|
c3f574d5cf |
@@ -124,7 +124,11 @@ namespace ForwardingServerUI.Class
|
||||
}
|
||||
else
|
||||
{
|
||||
Personm deserializedPerson = JsonSerializer.Deserialize<Personm>(DAT)!;
|
||||
string trimmedDat = DAT.Trim();
|
||||
if (!string.IsNullOrEmpty(trimmedDat) &&
|
||||
(trimmedDat[0] == '{' || trimmedDat[0] == '['))
|
||||
{
|
||||
Personm deserializedPerson = JsonSerializer.Deserialize<Personm>(trimmedDat)!;
|
||||
Application.Current.Dispatcher.Invoke(() =>
|
||||
{
|
||||
var mach = MainWindowViewModel._machineTable.Select("Enterprise='" + deserializedPerson.SERVEREnterprise +
|
||||
@@ -150,6 +154,7 @@ namespace ForwardingServerUI.Class
|
||||
deserializedPerson.SERVERMachineName, DateTime.Now.ToString(), deserializedPerson.MachineVer);
|
||||
}
|
||||
});
|
||||
}
|
||||
Console.WriteLine("[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff") + " LINK ID " + client.Id + " IP " + client.IP + "]\nDATA =" + DAT);
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user