fix: using correct deserialization type instead JsonElement for everyting except mixed arrays

This commit is contained in:
Denny09310
2025-11-09 15:46:33 +01:00
parent 168eceac8c
commit 0522bc425b
20 changed files with 191 additions and 242 deletions

View File

@@ -152,7 +152,7 @@
var messageName = apiBase.propertyMessageNames.GetOrAdd(callerName, s => apiBase.objectName + s.StripAsync());
BridgeConnector.Socket.On<JsonElement>(eventName, (result) =>
BridgeConnector.Socket.On<T>(eventName, (result) =>
{
BridgeConnector.Socket.Off(eventName);
@@ -160,7 +160,7 @@
{
try
{
var value = result.Deserialize<T>(ElectronJson.Options);
var value = result;
this.tcs?.SetResult(value);
}
catch (Exception ex)