Add support for CamelCase Json Serialization ...
This commit is contained in:
@@ -1209,7 +1209,7 @@ namespace xStringService.Providers
|
|||||||
var entitieIds = entities.Select(e => e.Id);
|
var entitieIds = entities.Select(e => e.Id);
|
||||||
await SendCustomPush(
|
await SendCustomPush(
|
||||||
action: XBaseEntityHubAction.DeleteMany.GetStringValue(),
|
action: XBaseEntityHubAction.DeleteMany.GetStringValue(),
|
||||||
payLoad: entitieIds.ToJSON(),
|
payLoad: entitieIds.ToJSON(camelCase: true),
|
||||||
connectionId: connectionId
|
connectionId: connectionId
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -1257,7 +1257,7 @@ namespace xStringService.Providers
|
|||||||
var ids = result.Select(i => i.Id);
|
var ids = result.Select(i => i.Id);
|
||||||
await SendCustomPush(
|
await SendCustomPush(
|
||||||
action: XBaseEntityHubAction.DeleteMany.GetStringValue(),
|
action: XBaseEntityHubAction.DeleteMany.GetStringValue(),
|
||||||
payLoad: ids.ToJSON(),
|
payLoad: ids.ToJSON(camelCase: true),
|
||||||
connectionId: connectionId
|
connectionId: connectionId
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -1431,7 +1431,7 @@ namespace xStringService.Providers
|
|||||||
{
|
{
|
||||||
clients = Hub.Clients.AllExcept(connectionId);
|
clients = Hub.Clients.AllExcept(connectionId);
|
||||||
}
|
}
|
||||||
await clients.SendAsync(action, entity.ToJSON(), connectionId);
|
await clients.SendAsync(action, entity.ToJSON(camelCase: true), connectionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user