Dec 16, 2016 04:48 PM|deepalgorithm|LINK
Is the class you are using?
If it is, then no you do not need to dispose.
BackgroundWorker derives from Component. Component implements the IDisposable interface. This makes BackgroundWorker inherit the Dispose() method. A Backgroundworker is a relatively 'light' object, it holds no resources. The thread is borrowed from
If you are using ASP.NET and you want to run a background task, then at a
minimum you should use HostingEnvironment.QueueBackgroundWorkItem. A more robust alternative is to use something like
QueueBackgroundWorkItem will register the work with ASP.NET. When ASP.NET has to recycle, it will notify the background work and will then wait up to 30 seconds for the work to complete. If the background work does not complete within that time, the work
// your code
catch (Exception ex)
// handle & log exception