Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x02000378 RID: 888
[Token(Token = "0x2000378")]
public class TaskFactory<TResult>
{
/// <summary>Initializes a <see cref="T:System.Threading.Tasks.TaskFactory`1" /> instance with the default configuration.</summary>
// Token: 0x060020CD RID: 8397 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020CD")]
[Address(RVA = "0x2F090A0", Offset = "0x2F080A0", VA = "0x182F090A0")]
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: 0x060020CE RID: 8398 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020CE")]
[Address(RVA = "0x2F090E0", Offset = "0x2F080E0", VA = "0x182F090E0")]
public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
}
// Token: 0x060020CF RID: 8399 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020CF")]
[Address(RVA = "0x2F04C70", Offset = "0x2F03C70", VA = "0x182F04C70")]
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: 0x060020D0 RID: 8400 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D0")]
[Address(RVA = "0x2F09050", Offset = "0x2F08050", VA = "0x182F09050")]
public Task<TResult> FromAsync(Func<AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, object state)
{
return null;
}
// Token: 0x060020D1 RID: 8401 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D1")]
[Address(RVA = "0x2F07C10", Offset = "0x2F06C10", VA = "0x182F07C10")]
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: 0x060020D2 RID: 8402 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D2")]
[Address(RVA = "0x25FE6F0", Offset = "0x25FD6F0", VA = "0x1825FE6F0")]
public Task<TResult> FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object state)
{
return null;
}
// Token: 0x060020D3 RID: 8403 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D3")]
[Address(RVA = "0x25FDC00", Offset = "0x25FCC00", VA = "0x1825FDC00")]
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: 0x060020D4 RID: 8404 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D4")]
[Address(RVA = "0x25FD610", Offset = "0x25FC610", VA = "0x1825FD610")]
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: 0x060020D5 RID: 8405 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D5")]
[Address(RVA = "0x25FE1E0", Offset = "0x25FD1E0", VA = "0x1825FE1E0")]
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: 0x04001241 RID: 4673
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001241")]
private CancellationToken m_defaultCancellationToken;
// Token: 0x04001242 RID: 4674
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001242")]
private TaskScheduler m_defaultScheduler;
// Token: 0x04001243 RID: 4675
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001243")]
private TaskCreationOptions m_defaultCreationOptions;
// Token: 0x04001244 RID: 4676
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001244")]
private TaskContinuationOptions m_defaultContinuationOptions;
// Token: 0x02000379 RID: 889
[Token(Token = "0x2000379")]
private sealed class FromAsyncTrimPromise<TInstance> : Task<TResult> where TInstance : class
{
// Token: 0x060020D6 RID: 8406 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020D6")]
[Address(RVA = "0x2EFE750", Offset = "0x2EFD750", VA = "0x182EFE750")]
internal FromAsyncTrimPromise(TInstance thisRef, Func<TInstance, IAsyncResult, TResult> endMethod)
{
}
// Token: 0x060020D7 RID: 8407 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020D7")]
[Address(RVA = "0x2EFDE90", Offset = "0x2EFCE90", VA = "0x182EFDE90")]
internal static void CompleteFromAsyncResult(IAsyncResult asyncResult)
{
}
// Token: 0x060020D8 RID: 8408 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020D8")]
[Address(RVA = "0x2EFE230", Offset = "0x2EFD230", VA = "0x182EFE230")]
internal void Complete(TInstance thisRef, Func<TInstance, IAsyncResult, TResult> endMethod, IAsyncResult asyncResult, bool requiresSynchronization)
{
}
// Token: 0x04001245 RID: 4677
[Token(Token = "0x4001245")]
internal static readonly AsyncCallback s_completeFromAsyncResult;
// Token: 0x04001246 RID: 4678
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001246")]
private TInstance m_thisRef;
// Token: 0x04001247 RID: 4679
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001247")]
private Func<TInstance, IAsyncResult, TResult> m_endMethod;
}
}
}