Beispiel #1
0
        private void CleanUpFiles()
        {
            var cleanupFiles = DataSourceAdapter.GetCleanupFiles();

            foreach (var cleanupFile in cleanupFiles)
            {
                try
                {
                    File.Delete(cleanupFile.FileName);
                    DataSourceAdapter.DeleteCleanupFile(cleanupFile);
                }
                catch
                {
                    // Try again next time...
                }
            }
        }