bezzad / ErrorControlSystem

ErrorControlSystem is a .NET library created to automate handling .NET Windows-Base application exceptions and raise that to a sql server. This exception handler have some features as screen capturing, fetch server date time in exception occurrence time and etc.
http://bezzad.github.io/ErrorControlSystem/
GNU General Public License v3.0
32 stars 14 forks source link

Send Cache Data to Server at Periodic Times #5

Closed bezzad closed 9 years ago

bezzad commented 9 years ago

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.

bezzad commented 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