using System;
using System.Threading;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// Executes an operation on a separate thread.
// Token: 0x020000E5 RID: 229
[Token(Token = "0x20000E5")]
[DefaultEvent("DoWork")]
[SRDescription("Executes an operation on a separate thread.")]
public class BackgroundWorker : Component
{
/// Initializes a new instance of the class.
// Token: 0x06000565 RID: 1381 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000565")]
[Address(RVA = "0xB90CD0", Offset = "0xB8FCD0", VA = "0x180B90CD0")]
public BackgroundWorker()
{
}
// Token: 0x06000566 RID: 1382 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000566")]
[Address(RVA = "0xB90140", Offset = "0xB8F140", VA = "0x180B90140")]
private void AsyncOperationCompleted(object arg)
{
}
/// Gets a value indicating whether the application has requested cancellation of a background operation.
///
/// if the application has requested cancellation of a background operation; otherwise, . The default is .
// Token: 0x170000DC RID: 220
// (get) Token: 0x06000567 RID: 1383 RVA: 0x00004230 File Offset: 0x00002430
[Token(Token = "0x170000DC")]
[SRDescription("Has the user attempted to cancel the operation? To be accessed from DoWork event handler.")]
[Browsable(false)]
public bool CancellationPending
{
[Token(Token = "0x6000567")]
[Address(RVA = "0xAC2F30", Offset = "0xAC1F30", VA = "0x180AC2F30")]
get
{
return default(bool);
}
}
/// Requests cancellation of a pending background operation.
///
/// is .
// Token: 0x06000568 RID: 1384 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000568")]
[Address(RVA = "0xB901F0", Offset = "0xB8F1F0", VA = "0x180B901F0")]
public void CancelAsync()
{
}
/// Occurs when is called.
// Token: 0x14000001 RID: 1
// (add) Token: 0x06000569 RID: 1385 RVA: 0x00002053 File Offset: 0x00000253
// (remove) Token: 0x0600056A RID: 1386 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x14000001")]
public event DoWorkEventHandler DoWork
{
[Token(Token = "0x6000569")]
[Address(RVA = "0xB90DB0", Offset = "0xB8FDB0", VA = "0x180B90DB0")]
add
{
}
[Token(Token = "0x600056A")]
[Address(RVA = "0xB91030", Offset = "0xB90030", VA = "0x180B91030")]
remove
{
}
}
/// Gets a value indicating whether the is running an asynchronous operation.
///
/// , if the is running an asynchronous operation; otherwise, .
// Token: 0x170000DD RID: 221
// (get) Token: 0x0600056B RID: 1387 RVA: 0x00004248 File Offset: 0x00002448
[Token(Token = "0x170000DD")]
[Browsable(false)]
[SRDescription("Is the worker still currently working on a background operation?")]
public bool IsBusy
{
[Token(Token = "0x600056B")]
[Address(RVA = "0xB91020", Offset = "0xB90020", VA = "0x180B91020")]
get
{
return default(bool);
}
}
/// Raises the event.
/// An that contains the event data.
// Token: 0x0600056C RID: 1388 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600056C")]
[Address(RVA = "0xB90270", Offset = "0xB8F270", VA = "0x180B90270", Slot = "16")]
protected virtual void OnDoWork(DoWorkEventArgs e)
{
}
/// Raises the event.
/// An that contains the event data.
// Token: 0x0600056D RID: 1389 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600056D")]
[Address(RVA = "0xB90470", Offset = "0xB8F470", VA = "0x180B90470", Slot = "17")]
protected virtual void OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
{
}
/// Raises the event.
/// An that contains the event data.
// Token: 0x0600056E RID: 1390 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600056E")]
[Address(RVA = "0xB90370", Offset = "0xB8F370", VA = "0x180B90370", Slot = "18")]
protected virtual void OnProgressChanged(ProgressChangedEventArgs e)
{
}
/// Occurs when is called.
// Token: 0x14000002 RID: 2
// (add) Token: 0x0600056F RID: 1391 RVA: 0x00002053 File Offset: 0x00000253
// (remove) Token: 0x06000570 RID: 1392 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x14000002")]
public event ProgressChangedEventHandler ProgressChanged
{
[Token(Token = "0x600056F")]
[Address(RVA = "0xB90E80", Offset = "0xB8FE80", VA = "0x180B90E80")]
add
{
}
[Token(Token = "0x6000570")]
[Address(RVA = "0xB91100", Offset = "0xB90100", VA = "0x180B91100")]
remove
{
}
}
// Token: 0x06000571 RID: 1393 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000571")]
[Address(RVA = "0xB90570", Offset = "0xB8F570", VA = "0x180B90570")]
private void ProgressReporter(object arg)
{
}
/// Raises the event.
/// The percentage, from 0 to 100, of the background operation that is complete.
/// The property is set to .
// Token: 0x06000572 RID: 1394 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000572")]
[Address(RVA = "0xB90700", Offset = "0xB8F700", VA = "0x180B90700")]
public void ReportProgress(int percentProgress)
{
}
/// Raises the event.
/// The percentage, from 0 to 100, of the background operation that is complete.
/// The state object passed to .
/// The property is set to .
// Token: 0x06000573 RID: 1395 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000573")]
[Address(RVA = "0xB90610", Offset = "0xB8F610", VA = "0x180B90610")]
public void ReportProgress(int percentProgress, object userState)
{
}
/// Starts execution of a background operation.
///
/// is .
// Token: 0x06000574 RID: 1396 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000574")]
[Address(RVA = "0xB907F0", Offset = "0xB8F7F0", VA = "0x180B907F0")]
public void RunWorkerAsync()
{
}
/// Starts execution of a background operation.
/// A parameter for use by the background operation to be executed in the event handler.
///
/// is .
// Token: 0x06000575 RID: 1397 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000575")]
[Address(RVA = "0xB90970", Offset = "0xB8F970", VA = "0x180B90970")]
public void RunWorkerAsync(object argument)
{
}
/// Occurs when the background operation has completed, has been canceled, or has raised an exception.
// Token: 0x14000003 RID: 3
// (add) Token: 0x06000576 RID: 1398 RVA: 0x00002053 File Offset: 0x00000253
// (remove) Token: 0x06000577 RID: 1399 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x14000003")]
public event RunWorkerCompletedEventHandler RunWorkerCompleted
{
[Token(Token = "0x6000576")]
[Address(RVA = "0xB90F50", Offset = "0xB8FF50", VA = "0x180B90F50")]
add
{
}
[Token(Token = "0x6000577")]
[Address(RVA = "0xB911D0", Offset = "0xB901D0", VA = "0x180B911D0")]
remove
{
}
}
/// Gets or sets a value indicating whether the can report progress updates.
///
/// if the supports progress updates; otherwise . The default is .
// Token: 0x170000DE RID: 222
// (get) Token: 0x06000578 RID: 1400 RVA: 0x00004260 File Offset: 0x00002460
// (set) Token: 0x06000579 RID: 1401 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170000DE")]
[SRCategory("Asynchronous")]
[DefaultValue(false)]
[SRDescription("Whether the worker will report progress.")]
public bool WorkerReportsProgress
{
[Token(Token = "0x6000578")]
[Address(RVA = "0x844B90", Offset = "0x843B90", VA = "0x180844B90")]
get
{
return default(bool);
}
[Token(Token = "0x6000579")]
[Address(RVA = "0x844B60", Offset = "0x843B60", VA = "0x180844B60")]
set
{
}
}
/// Gets or sets a value indicating whether the supports asynchronous cancellation.
///
/// if the supports cancellation; otherwise . The default is .
// Token: 0x170000DF RID: 223
// (get) Token: 0x0600057A RID: 1402 RVA: 0x00004278 File Offset: 0x00002478
// (set) Token: 0x0600057B RID: 1403 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170000DF")]
[DefaultValue(false)]
[SRDescription("Whether the worker supports cancellation.")]
[SRCategory("Asynchronous")]
public bool WorkerSupportsCancellation
{
[Token(Token = "0x600057A")]
[Address(RVA = "0x51F260", Offset = "0x51E260", VA = "0x18051F260")]
get
{
return default(bool);
}
[Token(Token = "0x600057B")]
[Address(RVA = "0x51F2B0", Offset = "0x51E2B0", VA = "0x18051F2B0")]
set
{
}
}
// Token: 0x0600057C RID: 1404 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600057C")]
[Address(RVA = "0xB90AF0", Offset = "0xB8FAF0", VA = "0x180B90AF0")]
private void WorkerThreadStart(object argument)
{
}
// Token: 0x04000439 RID: 1081
[Token(Token = "0x4000439")]
private static readonly object doWorkKey;
// Token: 0x0400043A RID: 1082
[Token(Token = "0x400043A")]
private static readonly object runWorkerCompletedKey;
// Token: 0x0400043B RID: 1083
[Token(Token = "0x400043B")]
private static readonly object progressChangedKey;
// Token: 0x0400043C RID: 1084
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400043C")]
private bool canCancelWorker;
// Token: 0x0400043D RID: 1085
[FieldOffset(Offset = "0x29")]
[Token(Token = "0x400043D")]
private bool workerReportsProgress;
// Token: 0x0400043E RID: 1086
[FieldOffset(Offset = "0x2A")]
[Token(Token = "0x400043E")]
private bool cancellationPending;
// Token: 0x0400043F RID: 1087
[FieldOffset(Offset = "0x2B")]
[Token(Token = "0x400043F")]
private bool isRunning;
// Token: 0x04000440 RID: 1088
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000440")]
private AsyncOperation asyncOperation;
// Token: 0x04000441 RID: 1089
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000441")]
private readonly BackgroundWorker.WorkerThreadStartDelegate threadStart;
// Token: 0x04000442 RID: 1090
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000442")]
private readonly SendOrPostCallback operationCompleted;
// Token: 0x04000443 RID: 1091
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000443")]
private readonly SendOrPostCallback progressReporter;
// Token: 0x020000E6 RID: 230
// (Invoke) Token: 0x0600057F RID: 1407
[Token(Token = "0x20000E6")]
private delegate void WorkerThreadStartDelegate(object argument);
}
}