Closed bezzad closed 9 years ago
Add GetTheFirstErrorHoursAsync
method to SdfFileManager class to fetch first logged errors from cache and match that by ExpireHours to send the cache data to server.
GetTheFirstErrorHoursAsync
method is a select to sql sdf file:
SELECT ABS(DATEDIFF(HH, Min([ErrorDateTime]), GETDATE())) FROM ErrorLog
In this project, the current system to transfer data from the cache to the server, depending on the capacity limit is reached or not. However, it is recommended that this system has a data transfer scheduler as well. That is, if a certain time past the insertion of the first error in the system, regardless of cache capacity, transfer the data to the server.