using System;
using System.Threading;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// Executes an operation on a separate thread.
// Token: 0x020000E9 RID: 233
[Token(Token = "0x20000E9")]
[DefaultEvent("DoWork")]
[SRDescription("Executes an operation on a separate thread.")]
public class BackgroundWorker : Component
{
/// Initializes a new instance of the class.
// Token: 0x0600057B RID: 1403 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600057B")]
[Address(RVA = "0x493EF0", Offset = "0x492CF0", VA = "0x180493EF0")]
public BackgroundWorker()
{
}
// Token: 0x0600057C RID: 1404 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600057C")]
[Address(RVA = "0x493360", Offset = "0x492160", VA = "0x180493360")]
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: 0x170000E0 RID: 224
// (get) Token: 0x0600057D RID: 1405 RVA: 0x00004248 File Offset: 0x00002448
[Token(Token = "0x170000E0")]
[Browsable(false)]
[SRDescription("Has the user attempted to cancel the operation? To be accessed from DoWork event handler.")]
public bool CancellationPending
{
[Token(Token = "0x600057D")]
[Address(RVA = "0x494240", Offset = "0x493040", VA = "0x180494240")]
get
{
return default(bool);
}
}
/// Requests cancellation of a pending background operation.
///
/// is .
// Token: 0x0600057E RID: 1406 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600057E")]
[Address(RVA = "0x493410", Offset = "0x492210", VA = "0x180493410")]
public void CancelAsync()
{
}
/// Occurs when is called.
// Token: 0x14000002 RID: 2
// (add) Token: 0x0600057F RID: 1407 RVA: 0x00002053 File Offset: 0x00000253
// (remove) Token: 0x06000580 RID: 1408 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x14000002")]
public event DoWorkEventHandler DoWork
{
[Token(Token = "0x600057F")]
[Address(RVA = "0x493FD0", Offset = "0x492DD0", VA = "0x180493FD0")]
add
{
}
[Token(Token = "0x6000580")]
[Address(RVA = "0x494280", Offset = "0x493080", VA = "0x180494280")]
remove
{
}
}
/// Gets a value indicating whether the is running an asynchronous operation.
///
/// , if the is running an asynchronous operation; otherwise, .
// Token: 0x170000E1 RID: 225
// (get) Token: 0x06000581 RID: 1409 RVA: 0x00004260 File Offset: 0x00002460
[Token(Token = "0x170000E1")]
[Browsable(false)]
[SRDescription("Is the worker still currently working on a background operation?")]
public bool IsBusy
{
[Token(Token = "0x6000581")]
[Address(RVA = "0x494250", Offset = "0x493050", VA = "0x180494250")]
get
{
return default(bool);
}
}
/// Raises the event.
/// An that contains the event data.
// Token: 0x06000582 RID: 1410 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000582")]
[Address(RVA = "0x493490", Offset = "0x492290", VA = "0x180493490", Slot = "16")]
protected virtual void OnDoWork(DoWorkEventArgs e)
{
}
/// Raises the event.
/// An that contains the event data.
// Token: 0x06000583 RID: 1411 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000583")]
[Address(RVA = "0x493690", Offset = "0x492490", VA = "0x180493690", Slot = "17")]
protected virtual void OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
{
}
/// Raises the event.
/// An that contains the event data.
// Token: 0x06000584 RID: 1412 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000584")]
[Address(RVA = "0x493590", Offset = "0x492390", VA = "0x180493590", Slot = "18")]
protected virtual void OnProgressChanged(ProgressChangedEventArgs e)
{
}
/// Occurs when is called.
// Token: 0x14000003 RID: 3
// (add) Token: 0x06000585 RID: 1413 RVA: 0x00002053 File Offset: 0x00000253
// (remove) Token: 0x06000586 RID: 1414 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x14000003")]
public event ProgressChangedEventHandler ProgressChanged
{
[Token(Token = "0x6000585")]
[Address(RVA = "0x4940A0", Offset = "0x492EA0", VA = "0x1804940A0")]
add
{
}
[Token(Token = "0x6000586")]
[Address(RVA = "0x494350", Offset = "0x493150", VA = "0x180494350")]
remove
{
}
}
// Token: 0x06000587 RID: 1415 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000587")]
[Address(RVA = "0x493790", Offset = "0x492590", VA = "0x180493790")]
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: 0x06000588 RID: 1416 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000588")]
[Address(RVA = "0x493920", Offset = "0x492720", VA = "0x180493920")]
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: 0x06000589 RID: 1417 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000589")]
[Address(RVA = "0x493830", Offset = "0x492630", VA = "0x180493830")]
public void ReportProgress(int percentProgress, object userState)
{
}
/// Starts execution of a background operation.
///
/// is .
// Token: 0x0600058A RID: 1418 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600058A")]
[Address(RVA = "0x493A10", Offset = "0x492810", VA = "0x180493A10")]
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: 0x0600058B RID: 1419 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600058B")]
[Address(RVA = "0x493B90", Offset = "0x492990", VA = "0x180493B90")]
public void RunWorkerAsync(object argument)
{
}
/// Occurs when the background operation has completed, has been canceled, or has raised an exception.
// Token: 0x14000004 RID: 4
// (add) Token: 0x0600058C RID: 1420 RVA: 0x00002053 File Offset: 0x00000253
// (remove) Token: 0x0600058D RID: 1421 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x14000004")]
public event RunWorkerCompletedEventHandler RunWorkerCompleted
{
[Token(Token = "0x600058C")]
[Address(RVA = "0x494170", Offset = "0x492F70", VA = "0x180494170")]
add
{
}
[Token(Token = "0x600058D")]
[Address(RVA = "0x494420", Offset = "0x493220", VA = "0x180494420")]
remove
{
}
}
/// Gets or sets a value indicating whether the can report progress updates.
///
/// if the supports progress updates; otherwise . The default is .
// Token: 0x170000E2 RID: 226
// (get) Token: 0x0600058E RID: 1422 RVA: 0x00004278 File Offset: 0x00002478
// (set) Token: 0x0600058F RID: 1423 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170000E2")]
[SRDescription("Whether the worker will report progress.")]
[DefaultValue(false)]
[SRCategory("Asynchronous")]
public bool WorkerReportsProgress
{
[Token(Token = "0x600058E")]
[Address(RVA = "0x494260", Offset = "0x493060", VA = "0x180494260")]
get
{
return default(bool);
}
[Token(Token = "0x600058F")]
[Address(RVA = "0x4944F0", Offset = "0x4932F0", VA = "0x1804944F0")]
set
{
}
}
/// Gets or sets a value indicating whether the supports asynchronous cancellation.
///
/// if the supports cancellation; otherwise . The default is .
// Token: 0x170000E3 RID: 227
// (get) Token: 0x06000590 RID: 1424 RVA: 0x00004290 File Offset: 0x00002490
// (set) Token: 0x06000591 RID: 1425 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170000E3")]
[SRDescription("Whether the worker supports cancellation.")]
[DefaultValue(false)]
[SRCategory("Asynchronous")]
public bool WorkerSupportsCancellation
{
[Token(Token = "0x6000590")]
[Address(RVA = "0x494270", Offset = "0x493070", VA = "0x180494270")]
get
{
return default(bool);
}
[Token(Token = "0x6000591")]
[Address(RVA = "0x494500", Offset = "0x493300", VA = "0x180494500")]
set
{
}
}
// Token: 0x06000592 RID: 1426 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000592")]
[Address(RVA = "0x493D10", Offset = "0x492B10", VA = "0x180493D10")]
private void WorkerThreadStart(object argument)
{
}
// Token: 0x04000446 RID: 1094
[Token(Token = "0x4000446")]
private static readonly object doWorkKey;
// Token: 0x04000447 RID: 1095
[Token(Token = "0x4000447")]
private static readonly object runWorkerCompletedKey;
// Token: 0x04000448 RID: 1096
[Token(Token = "0x4000448")]
private static readonly object progressChangedKey;
// Token: 0x04000449 RID: 1097
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000449")]
private bool canCancelWorker;
// Token: 0x0400044A RID: 1098
[FieldOffset(Offset = "0x29")]
[Token(Token = "0x400044A")]
private bool workerReportsProgress;
// Token: 0x0400044B RID: 1099
[FieldOffset(Offset = "0x2A")]
[Token(Token = "0x400044B")]
private bool cancellationPending;
// Token: 0x0400044C RID: 1100
[FieldOffset(Offset = "0x2B")]
[Token(Token = "0x400044C")]
private bool isRunning;
// Token: 0x0400044D RID: 1101
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400044D")]
private AsyncOperation asyncOperation;
// Token: 0x0400044E RID: 1102
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400044E")]
private readonly BackgroundWorker.WorkerThreadStartDelegate threadStart;
// Token: 0x0400044F RID: 1103
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400044F")]
private readonly SendOrPostCallback operationCompleted;
// Token: 0x04000450 RID: 1104
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000450")]
private readonly SendOrPostCallback progressReporter;
// Token: 0x020000EA RID: 234
// (Invoke) Token: 0x06000595 RID: 1429
[Token(Token = "0x20000EA")]
private delegate void WorkerThreadStartDelegate(object argument);
}
}