-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial code to teach the codebase async
Introduce async operations and refactor for readability Refactored multiple files to introduce asynchronous operations using async/await to improve performance and responsiveness, especially for I/O-bound tasks like database connections and file operations. Key changes: - Added System.Threading.Tasks namespace to several files. - Refactored methods in DataSourceDefn.cs, DataSourcesDefn.cs, Query.cs, ReportDefn.cs, ReportItem.cs, ReportLink.cs, Subreport.cs, ProcessReport.cs, Report.cs, MainWindow.cs, and ReportViewer.cs to support async operations. - Improved error handling and readability by introducing helper methods. - Updated event handlers and methods in ReportViewer.cs to be asynchronous. - Replaced Hashtable with ConcurrentDictionary in Report.cs for thread safety. - Corrected indentation in various files for consistency.
- Loading branch information
1 parent
5bcdad3
commit 64f7141
Showing
12 changed files
with
341 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.