Add support for CamelCase Json Serialization ...

This commit is contained in:
2025-11-16 20:41:22 +03:30
parent 13cd3ed511
commit ca82e677ba
+3 -3
View File
@@ -1209,7 +1209,7 @@ namespace xStringService.Providers
var entitieIds = entities.Select(e => e.Id);
await SendCustomPush(
action: XBaseEntityHubAction.DeleteMany.GetStringValue(),
payLoad: entitieIds.ToJSON(),
payLoad: entitieIds.ToJSON(camelCase: true),
connectionId: connectionId
);
}
@@ -1257,7 +1257,7 @@ namespace xStringService.Providers
var ids = result.Select(i => i.Id);
await SendCustomPush(
action: XBaseEntityHubAction.DeleteMany.GetStringValue(),
payLoad: ids.ToJSON(),
payLoad: ids.ToJSON(camelCase: true),
connectionId: connectionId
);
}
@@ -1431,7 +1431,7 @@ namespace xStringService.Providers
{
clients = Hub.Clients.AllExcept(connectionId);
}
await clients.SendAsync(action, entity.ToJSON(), connectionId);
await clients.SendAsync(action, entity.ToJSON(camelCase: true), connectionId);
}
/// <summary>