This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
@@ -0,0 +1,237 @@
using System;
using System.Collections.Generic;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Provides support for creating and scheduling <see cref="T:System.Threading.Tasks.Task" /> objects.</summary>
// Token: 0x02000392 RID: 914
[Token(Token = "0x2000392")]
public class TaskFactory
{
// Token: 0x06001FF9 RID: 8185 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001FF9")]
[Address(RVA = "0x1D9D480", Offset = "0x1D9C280", VA = "0x181D9D480")]
private TaskScheduler GetDefaultScheduler(Task currTask)
{
return null;
}
/// <summary>Initializes a <see cref="T:System.Threading.Tasks.TaskFactory" /> instance with the default configuration.</summary>
// Token: 0x06001FFA RID: 8186 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001FFA")]
[Address(RVA = "0x1D9D8B0", Offset = "0x1D9C6B0", VA = "0x181D9D8B0")]
public TaskFactory()
{
}
/// <summary>Initializes a <see cref="T:System.Threading.Tasks.TaskFactory" /> instance with the specified configuration.</summary>
/// <param name="cancellationToken">The default <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to tasks created by this <see cref="T:System.Threading.Tasks.TaskFactory" /> unless another CancellationToken is explicitly specified while calling the factory methods.</param>
/// <param name="creationOptions">The default <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> to use when creating tasks with this TaskFactory.</param>
/// <param name="continuationOptions">The default <see cref="T:System.Threading.Tasks.TaskContinuationOptions" /> to use when creating continuation tasks with this TaskFactory.</param>
/// <param name="scheduler">The default <see cref="T:System.Threading.Tasks.TaskScheduler" /> to use to schedule any Tasks created with this TaskFactory. A null value indicates that TaskScheduler.Current should be used.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="creationOptions" /> argument specifies an invalid <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> value. For more information, see the Remarks for <see cref="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)" />.
/// -or-
/// The <paramref name="continuationOptions" /> argument specifies an invalid value.</exception>
// Token: 0x06001FFB RID: 8187 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001FFB")]
[Address(RVA = "0x1D9D710", Offset = "0x1D9C510", VA = "0x181D9D710")]
public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
}
// Token: 0x06001FFC RID: 8188 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001FFC")]
[Address(RVA = "0x1D9CFC0", Offset = "0x1D9BDC0", VA = "0x181D9CFC0")]
internal static void CheckCreationOptions(TaskCreationOptions creationOptions)
{
}
/// <summary>Creates and starts a <see cref="T:System.Threading.Tasks.Task" />.</summary>
/// <param name="action">The action delegate to execute asynchronously.</param>
/// <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new <see cref="T:System.Threading.Tasks.Task" /></param>
/// <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the created <see cref="T:System.Threading.Tasks.Task" /></param>
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> that is used to schedule the created <see cref="T:System.Threading.Tasks.Task" />.</param>
/// <returns>The started <see cref="T:System.Threading.Tasks.Task" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken" /> has already been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action" /> argument is null.
/// -or-
/// The exception that is thrown when the <paramref name="scheduler" /> argument is null.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for <see cref="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)" /></exception>
// Token: 0x06001FFD RID: 8189 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001FFD")]
[Address(RVA = "0x1D9D660", Offset = "0x1D9C460", VA = "0x181D9D660")]
public Task StartNew(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
{
return null;
}
/// <summary>Creates and starts a <see cref="T:System.Threading.Tasks.Task" />.</summary>
/// <param name="action">The action delegate to execute asynchronously.</param>
/// <param name="state">An object containing data to be used by the <paramref name="action" /> delegate.</param>
/// <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new task.</param>
/// <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the created <see cref="T:System.Threading.Tasks.Task" /></param>
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> that is used to schedule the created <see cref="T:System.Threading.Tasks.Task" />.</param>
/// <returns>The started <see cref="T:System.Threading.Tasks.Task" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken" /> has already been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action" /> argument is null.
/// -or-
/// The exception that is thrown when the <paramref name="scheduler" /> argument is null.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for <see cref="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)" /></exception>
// Token: 0x06001FFE RID: 8190 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001FFE")]
[Address(RVA = "0x1D9D5A0", Offset = "0x1D9C3A0", VA = "0x181D9D5A0")]
public Task StartNew(Action<object> action, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
{
return null;
}
/// <summary>Creates and starts a <see cref="T:System.Threading.Tasks.Task`1" />.</summary>
/// <param name="function">A function delegate that returns the future result to be available through the <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <param name="state">An object containing data to be used by the <paramref name="function" /> delegate.</param>
/// <typeparam name="TResult">The type of the result available through the <see cref="T:System.Threading.Tasks.Task`1" />.</typeparam>
/// <returns>The started <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function" /> argument is null.</exception>
// Token: 0x06001FFF RID: 8191 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001FFF")]
[Address(RVA = "0x1B5E340", Offset = "0x1B5D140", VA = "0x181B5E340")]
public Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state)
{
return null;
}
/// <summary>Creates and starts a <see cref="T:System.Threading.Tasks.Task`1" />.</summary>
/// <param name="function">A function delegate that returns the future result to be available through the <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <param name="state">An object containing data to be used by the <paramref name="function" /> delegate.</param>
/// <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new task.</param>
/// <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the created <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> that is used to schedule the created <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <typeparam name="TResult">The type of the result available through the <see cref="T:System.Threading.Tasks.Task`1" />.</typeparam>
/// <returns>The started <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken" /> has already been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function" /> argument is null.
/// -or-
/// The exception that is thrown when the <paramref name="scheduler" /> argument is null.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for <see cref="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)" /></exception>
// Token: 0x06002000 RID: 8192 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002000")]
[Address(RVA = "0x1B5E820", Offset = "0x1B5D620", VA = "0x181B5E820")]
public Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
{
return null;
}
/// <summary>Creates a <see cref="T:System.Threading.Tasks.Task" /> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.</summary>
/// <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
/// <param name="endMethod">The delegate that ends the asynchronous operation.</param>
/// <param name="arg1">The first argument passed to the <paramref name="beginMethod" /> delegate.</param>
/// <param name="arg2">The second argument passed to the <paramref name="beginMethod" /> delegate.</param>
/// <param name="state">An object containing data to be used by the <paramref name="beginMethod" /> delegate.</param>
/// <typeparam name="TArg1">The type of the second argument passed to <paramref name="beginMethod" /> delegate.</typeparam>
/// <typeparam name="TArg2">The type of the first argument passed to the <paramref name="beginMethod" /> delegate.</typeparam>
/// <returns>The created <see cref="T:System.Threading.Tasks.Task" /> that represents the asynchronous operation.</returns>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="beginMethod" /> argument is null.
/// -or-
/// The exception that is thrown when the <paramref name="endMethod" /> argument is null.</exception>
// Token: 0x06002001 RID: 8193 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002001")]
[Address(RVA = "0x1B5E2C0", Offset = "0x1B5D0C0", VA = "0x181B5E2C0")]
public Task FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, object state)
{
return null;
}
/// <summary>Creates a <see cref="T:System.Threading.Tasks.Task" /> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.</summary>
/// <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
/// <param name="endMethod">The delegate that ends the asynchronous operation.</param>
/// <param name="arg1">The first argument passed to the <paramref name="beginMethod" /> delegate.</param>
/// <param name="arg2">The second argument passed to the <paramref name="beginMethod" /> delegate.</param>
/// <param name="state">An object containing data to be used by the <paramref name="beginMethod" /> delegate.</param>
/// <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the created <see cref="T:System.Threading.Tasks.Task" />.</param>
/// <typeparam name="TArg1">The type of the second argument passed to <paramref name="beginMethod" /> delegate.</typeparam>
/// <typeparam name="TArg2">The type of the first argument passed to the <paramref name="beginMethod" /> delegate.</typeparam>
/// <returns>The created <see cref="T:System.Threading.Tasks.Task" /> that represents the asynchronous operation.</returns>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="beginMethod" /> argument is null.
/// -or-
/// The exception that is thrown when the <paramref name="endMethod" /> argument is null.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for <see cref="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)" /></exception>
// Token: 0x06002002 RID: 8194 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002002")]
[Address(RVA = "0x1B5E2A0", Offset = "0x1B5D0A0", VA = "0x181B5E2A0")]
public Task FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x06002003 RID: 8195 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002003")]
[Address(RVA = "0x1D9D030", Offset = "0x1D9BE30", VA = "0x181D9D030")]
internal static void CheckFromAsyncOptions(TaskCreationOptions creationOptions, bool hasBeginMethod)
{
}
// Token: 0x06002004 RID: 8196 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002004")]
[Address(RVA = "0x1D9D250", Offset = "0x1D9C050", VA = "0x181D9D250")]
internal static Task<Task> CommonCWAnyLogic(IList<Task> tasks)
{
return null;
}
// Token: 0x06002005 RID: 8197 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002005")]
[Address(RVA = "0x1D9D140", Offset = "0x1D9BF40", VA = "0x181D9D140")]
internal static void CheckMultiTaskContinuationOptions(TaskContinuationOptions continuationOptions)
{
}
// Token: 0x0400124A RID: 4682
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400124A")]
private CancellationToken m_defaultCancellationToken;
// Token: 0x0400124B RID: 4683
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400124B")]
private TaskScheduler m_defaultScheduler;
// Token: 0x0400124C RID: 4684
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400124C")]
private TaskCreationOptions m_defaultCreationOptions;
// Token: 0x0400124D RID: 4685
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x400124D")]
private TaskContinuationOptions m_defaultContinuationOptions;
// Token: 0x02000393 RID: 915
[Token(Token = "0x2000393")]
internal sealed class CompleteOnInvokePromise : Task<Task>, ITaskCompletionAction
{
// Token: 0x06002006 RID: 8198 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002006")]
[Address(RVA = "0x1D98680", Offset = "0x1D97480", VA = "0x181D98680")]
public CompleteOnInvokePromise(IList<Task> tasks)
{
}
// Token: 0x06002007 RID: 8199 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002007")]
[Address(RVA = "0x1D98470", Offset = "0x1D97270", VA = "0x181D98470", Slot = "22")]
public void Invoke(Task completingTask)
{
}
// Token: 0x0400124E RID: 4686
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400124E")]
private IList<Task> _tasks;
// Token: 0x0400124F RID: 4687
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400124F")]
private int m_firstTaskAlreadyCompleted;
}
}
}