Exemple #1
0
        private bool DeletePerSecondStatsWithCameraId(int cameraId)
        {
            string cameraKey = _dbQueryService.GetCameraKeyFromId(cameraId);

            try
            {
                Directory.Delete(DatabasePerSecondStat.FRM_JPG_FOLDER_PATH + cameraKey, true);
            }
            catch (Exception)
            {
                //Will fail if no stat has been received
                //+ unclaim operation shouldn't fail because of a directory problem
            }

            return(_dbQueryService.DeletePerSecondStatsWithCameraId(cameraId));
        }