49 references to Factory
mscorlib (14)
system\io\filestream.cs (1)
2860
return Task.
Factory
.StartNew(
system\io\stream.cs (1)
285
return Task.
Factory
.StartNew(state => ((Stream)state).Flush(), this,
system\io\textwriter.cs (7)
544
return Task.
Factory
.StartNew(_WriteCharDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
552
return Task.
Factory
.StartNew(_WriteStringDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
568
return Task.
Factory
.StartNew(_WriteCharArrayRangeDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
576
return Task.
Factory
.StartNew(_WriteLineCharDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
584
return Task.
Factory
.StartNew(_WriteLineStringDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
600
return Task.
Factory
.StartNew(_WriteLineCharArrayRangeDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
614
return Task.
Factory
.StartNew(_FlushDelegate, this, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
system\runtime\compilerservices\YieldAwaitable.cs (1)
123
Task.
Factory
.StartNew(continuation, default(CancellationToken), TaskCreationOptions.PreferFairness, scheduler);
system\threading\Tasks\Parallel.cs (1)
364
tasks[i] = Task.
Factory
.StartNew(actionsCopy[i], parallelOptions.CancellationToken, TaskCreationOptions.None,
system\threading\Tasks\Task.cs (2)
103
/// using the Task type's <see cref="
Factory
"/> property to retrieve a <see
1639
/// The factory returned from <see cref="
Factory
"/> is a default instance
system\threading\Tasks\TaskFactory.cs (1)
40
/// <see cref="System.Threading.Tasks.Task.
Factory
">Task.Factory</see> property.
System (18)
net\System\Net\SecureProtocols\NegotiateStream.cs (9)
271
return Task.
Factory
.FromAsync(BeginAuthenticateAsClient, EndAuthenticateAsClient, null);
277
return Task.
Factory
.FromAsync(BeginAuthenticateAsClient, EndAuthenticateAsClient, credential, targetName, null);
286
return Task.
Factory
.FromAsync((callback, state) => BeginAuthenticateAsClient(credential, targetName, requiredProtectionLevel, allowedImpersonationLevel, callback, state), EndAuthenticateAsClient, null);
292
return Task.
Factory
.FromAsync(BeginAuthenticateAsClient, EndAuthenticateAsClient, credential, binding, targetName, null);
301
return Task.
Factory
.FromAsync((callback, state) => BeginAuthenticateAsClient(credential, binding, targetName, requiredProtectionLevel, allowedImpersonationLevel, callback, state), EndAuthenticateAsClient, null);
307
return Task.
Factory
.FromAsync(BeginAuthenticateAsServer, EndAuthenticateAsServer, null);
313
return Task.
Factory
.FromAsync(BeginAuthenticateAsServer, EndAuthenticateAsServer, policy, null);
319
return Task.
Factory
.FromAsync(BeginAuthenticateAsServer, EndAuthenticateAsServer, credential, requiredProtectionLevel, requiredImpersonationLevel, null);
328
return Task.
Factory
.FromAsync((callback, state) => BeginAuthenticateAsServer(credential, policy, requiredProtectionLevel, requiredImpersonationLevel, callback, state), EndAuthenticateAsClient, null);
net\System\Net\SecureProtocols\SslStream.cs (5)
266
return Task.
Factory
.FromAsync(BeginAuthenticateAsClient, EndAuthenticateAsClient, targetHost, null);
278
return Task.
Factory
.FromAsync((callback, state) => BeginAuthenticateAsClient(targetHost, clientCertificates, enabledSslProtocols, checkCertificateRevocation, callback, state), EndAuthenticateAsClient, null);
284
return Task.
Factory
.FromAsync(BeginAuthenticateAsServer, EndAuthenticateAsServer, serverCertificate, null);
296
return Task.
Factory
.FromAsync((callback, state) => BeginAuthenticateAsServer(serverCertificate, clientCertificateRequired, enabledSslProtocols, checkCertificateRevocation, callback, state), EndAuthenticateAsServer, null);
302
return Task.
Factory
.FromAsync(
net\System\Net\Sockets\TCPClient.cs (3)
403
return Task.
Factory
.FromAsync(BeginConnect, EndConnect, address, port, null);
409
return Task.
Factory
.FromAsync(BeginConnect, EndConnect, host, port, null);
415
return Task.
Factory
.FromAsync(BeginConnect, EndConnect, addresses, port, null);
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
635
return Task.
Factory
.FromAsync<IList<ArraySegment<byte>>>(s_BeginMultipleWrite, s_EndMultipleWrite,
System.Core (4)
System\IO\Pipes\Pipe.cs (3)
633
return Task.
Factory
.StartNew(WaitForConnection, cancellationToken);
638
return Task.
Factory
.FromAsync(BeginWaitForConnection, EndWaitForConnection, cancellationHelper);
1267
return Task.
Factory
.StartNew(() => ConnectInternal(timeout, cancellationToken, startTime), cancellationToken);
System\Linq\Parallel\Scheduling\QueryTask.cs (1)
87
return Task.
Factory
.StartNew(s_baseWorkDelegate, this, new CancellationToken(), TaskCreationOptions.AttachedToParent | TaskCreationOptions.PreferFairness, taskScheduler);
System.Data (2)
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
1296
Task.
Factory
.StartNew(() => {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
2549
Task.
Factory
.StartNew(() => {
System.Runtime.Serialization (2)
System\Xml\XmlDictionaryWriter.cs (2)
36
return Task.
Factory
.FromAsync(this.BeginWriteBase64, this.EndWriteBase64, buffer, index, count, null);
237
return Task.
Factory
.FromAsync(this.BeginWriteValue, this.EndWriteValue, value, null);
System.ServiceModel (5)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
269
return Task.
Factory
.FromAsync(beginCallDelegate, endCallDelegate, channel, operation, inputParameters, OperationContext.Current);
System\ServiceModel\Channels\WebSocketConnectionHandler.cs (1)
63
return Task.
Factory
.StartNew(
System\ServiceModel\Description\MetadataExchangeClient.cs (3)
314
return Task.
Factory
.FromAsync<MetadataRetriever, MetadataSet>(this.BeginGetMetadata, this.EndGetMetadata, retriever, /* state */ null);
324
return Task.
Factory
.FromAsync<MetadataRetriever, MetadataSet>(this.BeginGetMetadata, this.EndGetMetadata, new MetadataReferenceRetriever(address, this), /* state */ null);
339
return Task.
Factory
.FromAsync<MetadataRetriever, MetadataSet>(this.BeginGetMetadata, this.EndGetMetadata, new MetadataReferenceRetriever(address, via, this), /* state */ null);
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\XmlByteStreamWriter.cs (1)
130
return Task.
Factory
.FromAsync(this.BeginWriteBase64, this.EndWriteBase64, buffer, index, count, null);
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\AnnouncementClient.cs (2)
393
return Task.
Factory
.FromAsync<EndpointDiscoveryMetadata>(this.BeginAnnounceOnline, this.EndAnnounceOnline, discoveryMetadata, /* state */ null);
399
return Task.
Factory
.FromAsync<EndpointDiscoveryMetadata>(this.BeginAnnounceOffline, this.EndAnnounceOffline, discoveryMetadata, /* state */ null);
System.Web (1)
HttpResponse.cs (1)
782
return Task.
Factory
.FromAsync(BeginFlush, EndFlush, state: null);