Tracking Progress
ฝัง
- เผยแพร่เมื่อ 20 ก.ย. 2024
- In .NET, tasks get on with their work quietly in the background. But sometimes, it's nice to know what they're up to.
Source code available at: github.com/Jas...
Topics include:
- The Progress class
- The IProgress interface
- The WPF ProgressBar control
- Cross-thread management in GUI applications
- Avoiding overloading the event queue
- Problems with C# integer arithmetic
- async and await
Where do you use progress indicators? Let me know in the comments.
Source code available at: github.com/JasperKent/Task-Progress
Remember to subscribe at th-cam.com/channels/qWQzlUDdllnLmtgfSgYTCA.html
And if you liked the video, click the 👍.
Awesome video, high quality information
This is exactly what I've been searching for. Good explaination. Thank you!
Thanks for it! Stay with good!
great video as always
Thanks for the videos, very good explanation and examples. One thing got my attention, the Christianity and Jewish books... Are you Christian?
No, I’m a bibliophile.
I really like this problem-oriented example! 😀
Excellent as usual!
Greetings Jasper, awesome video as always. I used progress indicators overall in console applications not that much in WPF applications, because some times you got a batch that runs against the db. I got a question, if we were using a Parallel.ForEach how the percentage could be reported?
Just capture the 'progress' in the body of the ForEach. It's already thread-safe. Note that in the WPF example, you'd have to call the ForEach in a Task which you await, since ForEach alone will block.