Files
2026-04-10 22:50:51 +02:00

168 lines
8.9 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Provides support for creating and scheduling <see cref="T:System.Threading.Tasks.Task`1" /> objects.</summary>
/// <typeparam name="TResult">The return value of the <see cref="T:System.Threading.Tasks.Task`1" /> objects that the methods of this class create.</typeparam>
// Token: 0x0200035C RID: 860
[Token(Token = "0x200035C")]
public class TaskFactory<TResult>
{
/// <summary>Initializes a <see cref="T:System.Threading.Tasks.TaskFactory`1" /> instance with the default configuration.</summary>
// Token: 0x06001EC1 RID: 7873 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EC1")]
[Address(RVA = "0x28F03F0", Offset = "0x28EF1F0", VA = "0x1828F03F0")]
public TaskFactory()
{
}
/// <summary>Initializes a <see cref="T:System.Threading.Tasks.TaskFactory`1" /> instance with the specified configuration.</summary>
/// <param name="cancellationToken">The default cancellation token that will be assigned to tasks created by this <see cref="T:System.Threading.Tasks.TaskFactory" /> unless another cancellation token is explicitly specified when calling the factory methods.</param>
/// <param name="creationOptions">The default options to use when creating tasks with this <see cref="T:System.Threading.Tasks.TaskFactory`1" />.</param>
/// <param name="continuationOptions">The default options to use when creating continuation tasks with this <see cref="T:System.Threading.Tasks.TaskFactory`1" />.</param>
/// <param name="scheduler">The default scheduler to use to schedule any tasks created with this <see cref="T:System.Threading.Tasks.TaskFactory`1" />. A null value indicates that <see cref="P:System.Threading.Tasks.TaskScheduler.Current" /> should be used.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="creationOptions" /> or <paramref name="continuationOptions" /> specifies an invalid value.</exception>
// Token: 0x06001EC2 RID: 7874 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EC2")]
[Address(RVA = "0x28F0430", Offset = "0x28EF230", VA = "0x1828F0430")]
public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
}
// Token: 0x06001EC3 RID: 7875 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EC3")]
[Address(RVA = "0x28ED820", Offset = "0x28EC620", VA = "0x1828ED820")]
private static void FromAsyncCoreLogic(IAsyncResult iar, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, Task<TResult> promise, bool requiresSynchronization)
{
}
/// <summary>Creates a 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="state">An object containing data to be used by the <paramref name="beginMethod" /> delegate.</param>
/// <returns>The created task that represents the asynchronous operation.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="beginMethod" /> argument is <see langword="null" />.
/// -or-
/// The <paramref name="endMethod" /> argument is <see langword="null" />.</exception>
// Token: 0x06001EC4 RID: 7876 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC4")]
[Address(RVA = "0x28F03A0", Offset = "0x28EF1A0", VA = "0x1828F03A0")]
public Task<TResult> FromAsync(Func<AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, object state)
{
return null;
}
// Token: 0x06001EC5 RID: 7877 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC5")]
[Address(RVA = "0x28EE820", Offset = "0x28ED620", VA = "0x1828EE820")]
internal static Task<TResult> FromAsyncImpl(Func<AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, object state, TaskCreationOptions creationOptions)
{
return null;
}
/// <summary>Creates a 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="state">An object containing data to be used by the <paramref name="beginMethod" /> delegate.</param>
/// <typeparam name="TArg1">The type of the first argument passed to the <paramref name="beginMethod" /> delegate.</typeparam>
/// <returns>The created task that represents the asynchronous operation.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="beginMethod" /> argument is <see langword="null" />.
/// -or-
/// The <paramref name="endMethod" /> argument is <see langword="null" />.</exception>
// Token: 0x06001EC6 RID: 7878 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC6")]
[Address(RVA = "0x1B5E250", Offset = "0x1B5D050", VA = "0x181B5E250")]
public Task<TResult> FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object state)
{
return null;
}
// Token: 0x06001EC7 RID: 7879 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC7")]
[Address(RVA = "0x1B5D760", Offset = "0x1B5C560", VA = "0x181B5D760")]
internal static Task<TResult> FromAsyncImpl<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, TArg1 arg1, object state, TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x06001EC8 RID: 7880 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC8")]
[Address(RVA = "0x1B5D170", Offset = "0x1B5BF70", VA = "0x181B5D170")]
internal static Task<TResult> FromAsyncImpl<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x06001EC9 RID: 7881 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC9")]
[Address(RVA = "0x1B5DD40", Offset = "0x1B5CB40", VA = "0x181B5DD40")]
internal static Task<TResult> FromAsyncTrim<TInstance, TArgs>(TInstance thisRef, TArgs args, Func<TInstance, TArgs, AsyncCallback, object, IAsyncResult> beginMethod, Func<TInstance, IAsyncResult, TResult> endMethod) where TInstance : class
{
return null;
}
// Token: 0x0400117E RID: 4478
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400117E")]
private CancellationToken m_defaultCancellationToken;
// Token: 0x0400117F RID: 4479
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400117F")]
private TaskScheduler m_defaultScheduler;
// Token: 0x04001180 RID: 4480
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001180")]
private TaskCreationOptions m_defaultCreationOptions;
// Token: 0x04001181 RID: 4481
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001181")]
private TaskContinuationOptions m_defaultContinuationOptions;
// Token: 0x0200035D RID: 861
[Token(Token = "0x200035D")]
private sealed class FromAsyncTrimPromise<TInstance> : Task<TResult> where TInstance : class
{
// Token: 0x06001ECA RID: 7882 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001ECA")]
[Address(RVA = "0x28E9F90", Offset = "0x28E8D90", VA = "0x1828E9F90")]
internal FromAsyncTrimPromise(TInstance thisRef, Func<TInstance, IAsyncResult, TResult> endMethod)
{
}
// Token: 0x06001ECB RID: 7883 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001ECB")]
[Address(RVA = "0x28E96D0", Offset = "0x28E84D0", VA = "0x1828E96D0")]
internal static void CompleteFromAsyncResult(IAsyncResult asyncResult)
{
}
// Token: 0x06001ECC RID: 7884 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001ECC")]
[Address(RVA = "0x28E9A70", Offset = "0x28E8870", VA = "0x1828E9A70")]
internal void Complete(TInstance thisRef, Func<TInstance, IAsyncResult, TResult> endMethod, IAsyncResult asyncResult, bool requiresSynchronization)
{
}
// Token: 0x04001182 RID: 4482
[Token(Token = "0x4001182")]
internal static readonly AsyncCallback s_completeFromAsyncResult;
// Token: 0x04001183 RID: 4483
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001183")]
private TInstance m_thisRef;
// Token: 0x04001184 RID: 4484
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001184")]
private Func<TInstance, IAsyncResult, TResult> m_endMethod;
}
}
}