1 instantiation of TaskFactory
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
1540public static TaskFactory Factory { get; } = new TaskFactory();
43 references to TaskFactory
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1166[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskFactory))]
netstandard (1)
netstandard.cs (1)
2125[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskFactory))]
System.Private.CoreLib (39)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (9)
73/// cref="TaskFactory"/> instance that can be used to create tasks for several 1537/// of <see cref="TaskFactory"/>, as would result from using 1540public static TaskFactory Factory { get; } = new TaskFactory(); 5422Task<Task> firstCompleted = TaskFactory.CommonCWAnyLogic(tasks, isSyncBlocking: true); 5432TaskFactory.CommonCWAnyLogicCleanup(firstCompleted); 6649return TaskFactory.CommonCWAnyLogic(tasksCopy); 6691/// This has essentially the same logic as <see cref="TaskFactory.CompleteOnInvokePromise{TTask}"/>, but optimized 6831return TaskFactory.CommonCWAnyLogic(taskArray); 6858return TaskFactory.CommonCWAnyLogic(taskList);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (11)
25/// There are many common patterns for which tasks are relevant. The <see cref="TaskFactory"/> 30/// A default instance of <see cref="TaskFactory"/> is available through the 60/// Initializes a <see cref="TaskFactory"/> instance with the default configuration. 63/// This constructor creates a <see cref="TaskFactory"/> instance with a default configuration. The 77/// Initializes a <see cref="TaskFactory"/> instance with the specified configuration. 80/// to tasks created by this <see cref="TaskFactory"/> unless another CancellationToken is explicitly specified 83/// This constructor creates a <see cref="TaskFactory"/> instance with a default configuration. The 98/// Initializes a <see cref="TaskFactory"/> instance with the specified configuration. 122/// Initializes a <see cref="TaskFactory"/> instance with the specified configuration. 157/// Initializes a <see cref="TaskFactory"/> instance with the specified configuration. 160/// to tasks created by this <see cref="TaskFactory"/> unless another CancellationToken is explicitly specified
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (19)
75/// to tasks created by this <see cref="TaskFactory"/> unless another CancellationToken is explicitly specified 144TaskFactory.CheckMultiTaskContinuationOptions(continuationOptions); 145TaskFactory.CheckCreationOptions(creationOptions); 155/// to tasks created by this <see cref="TaskFactory"/> unless another CancellationToken is explicitly specified 647TaskFactory.CheckFromAsyncOptions(creationOptions, false); 766TaskFactory.CheckFromAsyncOptions(creationOptions, true); 883TaskFactory.CheckFromAsyncOptions(creationOptions, true); 1008TaskFactory.CheckFromAsyncOptions(creationOptions, true); 1141TaskFactory.CheckFromAsyncOptions(creationOptions, true); 1608TaskFactory.CheckMultiTaskContinuationOptions(continuationOptions); 1615Task<TAntecedentResult>[] tasksCopy = TaskFactory.CheckMultiContinuationTasksAndCopy(tasks); 1626Task<Task<TAntecedentResult>[]> starter = TaskFactory.CommonCWAllLogic(tasksCopy); 1655TaskFactory.CheckMultiTaskContinuationOptions(continuationOptions); 1662Task[] tasksCopy = TaskFactory.CheckMultiContinuationTasksAndCopy(tasks); 1673Task<Task[]> starter = TaskFactory.CommonCWAllLogic(tasksCopy); 1977TaskFactory.CheckMultiTaskContinuationOptions(continuationOptions); 1986Task<Task> starter = TaskFactory.CommonCWAnyLogic(tasks); 2028TaskFactory.CheckMultiTaskContinuationOptions(continuationOptions); 2036Task<Task<TAntecedentResult>> starter = TaskFactory.CommonCWAnyLogic(tasks);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
837[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskFactory))]
System.Threading.Tasks (1)
System.Threading.Tasks.cs (1)
32[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskFactory))]