Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Introduction to The .NET BackgroundWorker Component

via Pluralsight

Overview

Keep your UI responsive. The BackgroundWorker component gives us an easy way to keep our UI responsive by moving a long-running process off of the UI thread. We'll explore this, plus other features: progress reporting, cancellation, and error handling. And we'll also see the BackgroundWorker component in conjunction with the MVVM pattern and the Task Parallel Library.

Keep your UI responsive. If we're not careful, a long-running process will cause our application to "lock up". The BackgroundWorker component gives us an easy-to-use solution by moving that long-running process off of our UI thread. We'll see how the BackgroundWorker component can keep our WinForms, WPF, or Silverlight UI responsive and also explore features such as progress reporting, cancellation, and error handling. After that, we'll see how easily the BackgroundWorker component fits in with an application using the Model-View-ViewModel (MVVM) pattern. And finally, we'll compare the BackgroundWorker component to the Task Parallel Library to make sure we're using the right tool for the job.

Syllabus

  • BackgroundWorker Overview 38mins
  • Progress, Cancellation, and Error Handling 42mins
  • BackgroundWorker and MVVM 19mins
  • BackgroundWorker vs. Task 27mins

Taught by

Jeremy Clark

Reviews

4.7 rating at Pluralsight based on 197 ratings

Start your review of Introduction to The .NET BackgroundWorker Component

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.