16 references to Factory
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\LdapAdapter.cs (1)
48
var searchResponse = (SearchResponse)await Task<DirectoryResponse>.
Factory
.FromAsync(
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
WindowsFormsDispatcher.cs (1)
120
return await Task<TResult>.
Factory
.FromAsync(asyncResult, result => (TResult)_dispatchThreadControl.EndInvoke(result)!);
System.Net.Requests (2)
System\Net\WebRequest.cs (2)
523
return await Task<Stream>.
Factory
.FromAsync(
534
return await Task<WebResponse>.
Factory
.FromAsync(
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (4)
222
Task<string?>.
Factory
.StartNew(static state => ((TextReader)state!).ReadLine(), this,
277
Task<int>.
Factory
.StartNew(static state =>
284
new ValueTask<int>(Task<int>.
Factory
.StartNew(static state =>
307
Task<int>.
Factory
.StartNew(static state =>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (2)
27
/// using the task's <see cref="
Factory
"/> property to retrieve a <see
470
/// The factory returned from <see cref="
Factory
"/> is a default instance
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (1)
23
/// <see cref="Task{TResult}.
Factory
">Task{TResult}.Factory</see> property.
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
5617
Task<Task?> task1 = Task<Task?>.
Factory
.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
5661
Task<Task<TResult>?> task1 = Task<Task<TResult>?>.
Factory
.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
System.ServiceModel.Primitives (3)
Internals\System\Runtime\ActionItem.cs (1)
86
Task<Task>.
Factory
.StartNew(callback, state, CancellationToken.None, TaskCreationOptions.DenyChildAttach, IOThreadScheduler.IOTaskScheduler);
System\IdentityModel\Selectors\SecurityTokenProvider.cs (2)
86
return Task<SecurityToken>.
Factory
.FromAsync(BeginGetTokenCore, EndGetTokenCore, timeout, null);
173
return Task<SecurityToken>.
Factory
.FromAsync(BeginRenewTokenCore, EndRenewTokenCore, timeout, tokenToBeRenewed, null);