Update test mode for template export signature and discovered-user reporting.

main
SYED MUSTUFA AHMED NAQVI 2026-04-14 17:22:46 +05:00
parent a5d0bc04c1
commit 803d645360
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,7 @@ internal static class AttendanceTestMode
Console.WriteLine($"Exporting ALL face + fingerprint templates via ISAPI: device={exportAllIsapiDeviceId}, pageSize={exportAllIsapiPageSize}, maxUsers={exportAllIsapiMaxUsers}"); Console.WriteLine($"Exporting ALL face + fingerprint templates via ISAPI: device={exportAllIsapiDeviceId}, pageSize={exportAllIsapiPageSize}, maxUsers={exportAllIsapiMaxUsers}");
string jsonPath = ""; string jsonPath = "";
int discoveredUsers = 0;
string exportErr = ""; string exportErr = "";
bool exportOk = await Task.Run(() => bool exportOk = await Task.Run(() =>
manager.TryExportAllUsersTemplatesToIsapiFile( manager.TryExportAllUsersTemplatesToIsapiFile(
@ -153,6 +154,7 @@ internal static class AttendanceTestMode
exportAllIsapiMaxUsers, exportAllIsapiMaxUsers,
cts.Token, cts.Token,
out jsonPath, out jsonPath,
out discoveredUsers,
out exportErr), cts.Token).ConfigureAwait(false); out exportErr), cts.Token).ConfigureAwait(false);
if (exportOk) if (exportOk)