Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

323 lines
13 KiB
C#

using System;
using System.Threading;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Executes an operation on a separate thread.</summary>
// Token: 0x020000E9 RID: 233
[Token(Token = "0x20000E9")]
[DefaultEvent("DoWork")]
[SRDescription("Executes an operation on a separate thread.")]
public class BackgroundWorker : Component
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.BackgroundWorker" /> class.</summary>
// 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)
{
}
/// <summary>Gets a value indicating whether the application has requested cancellation of a background operation.</summary>
/// <returns>
/// <see langword="true" /> if the application has requested cancellation of a background operation; otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
// 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);
}
}
/// <summary>Requests cancellation of a pending background operation.</summary>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="P:System.ComponentModel.BackgroundWorker.WorkerSupportsCancellation" /> is <see langword="false" />.</exception>
// Token: 0x0600057E RID: 1406 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600057E")]
[Address(RVA = "0x493410", Offset = "0x492210", VA = "0x180493410")]
public void CancelAsync()
{
}
/// <summary>Occurs when <see cref="M:System.ComponentModel.BackgroundWorker.RunWorkerAsync" /> is called.</summary>
// 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
{
}
}
/// <summary>Gets a value indicating whether the <see cref="T:System.ComponentModel.BackgroundWorker" /> is running an asynchronous operation.</summary>
/// <returns>
/// <see langword="true" />, if the <see cref="T:System.ComponentModel.BackgroundWorker" /> is running an asynchronous operation; otherwise, <see langword="false" />.</returns>
// 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);
}
}
/// <summary>Raises the <see cref="E:System.ComponentModel.BackgroundWorker.DoWork" /> event.</summary>
/// <param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
// 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)
{
}
/// <summary>Raises the <see cref="E:System.ComponentModel.BackgroundWorker.RunWorkerCompleted" /> event.</summary>
/// <param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
// 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)
{
}
/// <summary>Raises the <see cref="E:System.ComponentModel.BackgroundWorker.ProgressChanged" /> event.</summary>
/// <param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
// 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)
{
}
/// <summary>Occurs when <see cref="M:System.ComponentModel.BackgroundWorker.ReportProgress(System.Int32)" /> is called.</summary>
// 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)
{
}
/// <summary>Raises the <see cref="E:System.ComponentModel.BackgroundWorker.ProgressChanged" /> event.</summary>
/// <param name="percentProgress">The percentage, from 0 to 100, of the background operation that is complete.</param>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.ComponentModel.BackgroundWorker.WorkerReportsProgress" /> property is set to <see langword="false" />.</exception>
// Token: 0x06000588 RID: 1416 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000588")]
[Address(RVA = "0x493920", Offset = "0x492720", VA = "0x180493920")]
public void ReportProgress(int percentProgress)
{
}
/// <summary>Raises the <see cref="E:System.ComponentModel.BackgroundWorker.ProgressChanged" /> event.</summary>
/// <param name="percentProgress">The percentage, from 0 to 100, of the background operation that is complete.</param>
/// <param name="userState">The state object passed to <see cref="M:System.ComponentModel.BackgroundWorker.RunWorkerAsync(System.Object)" />.</param>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.ComponentModel.BackgroundWorker.WorkerReportsProgress" /> property is set to <see langword="false" />.</exception>
// 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)
{
}
/// <summary>Starts execution of a background operation.</summary>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="P:System.ComponentModel.BackgroundWorker.IsBusy" /> is <see langword="true" />.</exception>
// Token: 0x0600058A RID: 1418 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600058A")]
[Address(RVA = "0x493A10", Offset = "0x492810", VA = "0x180493A10")]
public void RunWorkerAsync()
{
}
/// <summary>Starts execution of a background operation.</summary>
/// <param name="argument">A parameter for use by the background operation to be executed in the <see cref="E:System.ComponentModel.BackgroundWorker.DoWork" /> event handler.</param>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="P:System.ComponentModel.BackgroundWorker.IsBusy" /> is <see langword="true" />.</exception>
// Token: 0x0600058B RID: 1419 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600058B")]
[Address(RVA = "0x493B90", Offset = "0x492990", VA = "0x180493B90")]
public void RunWorkerAsync(object argument)
{
}
/// <summary>Occurs when the background operation has completed, has been canceled, or has raised an exception.</summary>
// 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
{
}
}
/// <summary>Gets or sets a value indicating whether the <see cref="T:System.ComponentModel.BackgroundWorker" /> can report progress updates.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.ComponentModel.BackgroundWorker" /> supports progress updates; otherwise <see langword="false" />. The default is <see langword="false" />.</returns>
// 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
{
}
}
/// <summary>Gets or sets a value indicating whether the <see cref="T:System.ComponentModel.BackgroundWorker" /> supports asynchronous cancellation.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.ComponentModel.BackgroundWorker" /> supports cancellation; otherwise <see langword="false" />. The default is <see langword="false" />.</returns>
// 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);
}
}