Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gerardo-lijs/asynchronous-programming-samples
Samples source code
https://github.com/gerardo-lijs/asynchronous-programming-samples
asynchronous-programming concurrency reactiveui samples tpl
Last synced: about 1 month ago
JSON representation
Samples source code
- Host: GitHub
- URL: https://github.com/gerardo-lijs/asynchronous-programming-samples
- Owner: gerardo-lijs
- Created: 2019-04-28T16:12:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-27T15:39:21.000Z (over 3 years ago)
- Last Synced: 2024-10-01T01:54:08.516Z (about 2 months ago)
- Topics: asynchronous-programming, concurrency, reactiveui, samples, tpl
- Language: C#
- Size: 2.84 MB
- Stars: 13
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Asynchronous programming in .NET samples
* [Responsive WPF application demo](01-AsyncDesktop)
Demo source code of a WPF application to demonstrate responsive UI and the beneficts of using async
* [Scalability and performance in web applications demo](02-AsyncWebAPI)
Demo source code of two Web API to demonstrate performance of using async with IO-bound and CPU-bound operations
* [Progress in a WPF application demo](03-AsyncProgressDesktop)
Demo soure code to demonstrate the simple use of a ProgressRing
* [Cancellation in a WPF application demo](04-AsyncCancelDesktop)
Demo soure code to demonstrate the simple use of CancellationToken
* [Parallel ForEach and Task.WhenAny demo application](05-ParallelDemoDesktop)
Demo soure code of a simple WPF Desktop Application to demonstrate how you can use Task Parallel Library ForEach for CPU-bound operations and how you can use Task.WhenAny for IO-bound operations## Notes
* In WPF desktop sample I didn't use MVVM to have a minimalistic example
* In Progress, Cancellation and Parallel samples source code I used [ReactiveUI](https://reactiveui.net/) as MVVM framework, [MahApps](https://mahapps.com/) and [OpenCVSharp](https://github.com/shimat/opencvsharp) for simulating a CPU-bound expensive operation. If you are interested in this projects it's worth checkin it out since they are a minimalistic example and easy to see how they work.