Class AbortableBackgroundWorker
A Worker that can be aborted like normal threads.
Inheritance
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.ComponentModel.BackgroundWorker
AbortableBackgroundWorker
Implements
System.ComponentModel.IComponent
System.IDisposable
Inherited Members
System.ComponentModel.BackgroundWorker.CancelAsync()
System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(System.ComponentModel.RunWorkerCompletedEventArgs)
System.ComponentModel.BackgroundWorker.OnProgressChanged(System.ComponentModel.ProgressChangedEventArgs)
System.ComponentModel.BackgroundWorker.ReportProgress(System.Int32)
System.ComponentModel.BackgroundWorker.ReportProgress(System.Int32, System.Object)
System.ComponentModel.BackgroundWorker.RunWorkerAsync()
System.ComponentModel.BackgroundWorker.RunWorkerAsync(System.Object)
System.ComponentModel.BackgroundWorker.CancellationPending
System.ComponentModel.BackgroundWorker.IsBusy
System.ComponentModel.BackgroundWorker.WorkerReportsProgress
System.ComponentModel.BackgroundWorker.WorkerSupportsCancellation
System.ComponentModel.BackgroundWorker.DoWork
System.ComponentModel.BackgroundWorker.ProgressChanged
System.ComponentModel.BackgroundWorker.RunWorkerCompleted
System.ComponentModel.Component.Dispose()
System.ComponentModel.Component.Dispose(System.Boolean)
System.ComponentModel.Component.GetService(System.Type)
System.ComponentModel.Component.ToString()
System.ComponentModel.Component.CanRaiseEvents
System.ComponentModel.Component.Events
System.ComponentModel.Component.Site
System.ComponentModel.Component.Container
System.ComponentModel.Component.DesignMode
System.ComponentModel.Component.Disposed
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.CreateObjRef(System.Type)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib.Runner
Assembly: RuriLib.dll
Syntax
public class AbortableBackgroundWorker : BackgroundWorker, IComponent, IDisposable
Properties
| Improve this Doc View SourceId
The Id of the Worker.
Declaration
public int Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Status
The Status of the Worker.
Declaration
public WorkerStatus Status { get; set; }
Property Value
Type | Description |
---|---|
WorkerStatus |
Methods
| Improve this Doc View SourceAbort()
Calls the Abort() method on the inner Thread.
Declaration
public void Abort()
OnDoWork(DoWorkEventArgs)
OnDoWork that supports aborting.
Declaration
protected override void OnDoWork(DoWorkEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.DoWorkEventArgs | e | The DoWorkEventArgs |
Overrides
System.ComponentModel.BackgroundWorker.OnDoWork(System.ComponentModel.DoWorkEventArgs)
Implements
System.ComponentModel.IComponent
System.IDisposable