Simple play icon Course
Skills Expanded

Introduction to The .NET BackgroundWorker Component

by Jeremy Clark

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.

What you'll learn

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.

About the author

Jeremy Clark makes developers better. By drawing on over 15 years of experience in application development, he helps developers take a step up in their skill set with a focus on making complex topics approachable regardless of skill level. He is a Microsoft MVP for .NET and has authored a number of articles about C# on his blog.. He loves sharing his experiences and has delivered over 300 technical presentations in the last 9 years in the United States and Europe. Jeremy lives in northern Washin... more

Ready to upskill? Get started