28 references to Factory
mscorlib (7)
system\io\textreader.cs (2)
200
return Task<String>.
Factory
.StartNew(_ReadLineDelegate, this, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
240
return Task<int>.
Factory
.StartNew(_ReadDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
system\threading\Tasks\Future.cs (2)
41
/// using the task's <see cref="
Factory
"/> property to retrieve a <see
664
/// The factory returned from <see cref="
Factory
"/> is a default instance
system\threading\Tasks\FutureFactory.cs (1)
41
/// <see cref="System.Threading.Tasks.Task{TResult}.
Factory
">Task{TResult}.Factory</see> property.
system\threading\Tasks\Task.cs (2)
5721
Task<Task> task1 = Task<Task>.
Factory
.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
5772
Task<Task<TResult>> task1 = Task<Task<TResult>>.
Factory
.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
System (16)
net\System\Net\DNS.cs (3)
1058
return Task<IPAddress[]>.
Factory
.FromAsync(BeginGetHostAddresses, EndGetHostAddresses, hostNameOrAddress, null);
1064
return Task<IPHostEntry>.
Factory
.FromAsync(BeginGetHostEntry, EndGetHostEntry, address, null);
1070
return Task<IPHostEntry>.
Factory
.FromAsync(BeginGetHostEntry, EndGetHostEntry, hostNameOrAddress, null);
net\System\Net\HttpListener.cs (1)
1315
return Task<HttpListenerContext>.
Factory
.FromAsync(BeginGetContext, EndGetContext, null);
net\System\Net\HttpListenerRequest.cs (1)
648
return Task<X509Certificate2>.
Factory
.FromAsync(BeginGetClientCertificate, EndGetClientCertificate, null);
net\System\Net\NetworkInformation\IPGlobalProperties.cs (1)
95
return Task<UnicastIPAddressInformationCollection>.
Factory
.FromAsync(BeginGetUnicastAddresses, EndGetUnicastAddresses, null);
net\System\Net\Sockets\TCPListener.cs (2)
339
return Task<Socket>.
Factory
.FromAsync(BeginAcceptSocket, EndAcceptSocket, null);
345
return Task<TcpClient>.
Factory
.FromAsync(BeginAcceptTcpClient, EndAcceptTcpClient, null);
net\System\Net\Sockets\UDPClient.cs (4)
1008
return Task<int>.
Factory
.FromAsync(BeginSend, EndSend, datagram, bytes, null);
1014
return Task<int>.
Factory
.FromAsync(BeginSend, EndSend, datagram, bytes, endPoint, null);
1022
return Task<int>.
Factory
.FromAsync((callback, state) => BeginSend(datagram, bytes, hostname, port, callback, state), EndSend, null);
1028
return Task<UdpReceiveResult>.
Factory
.FromAsync((callback, state) => BeginReceive(callback, state), (ar)=>
net\System\Net\WebRequest.cs (4)
883
return Task<Stream>.
Factory
.FromAsync(this.BeginGetRequestStream,
891
return Task.Run(() => Task<Stream>.
Factory
.FromAsync(this.BeginGetRequestStream,
920
return Task<WebResponse>.
Factory
.FromAsync(this.BeginGetResponse,
928
return Task.Run(() => Task<WebResponse>.
Factory
.FromAsync(this.BeginGetResponse,
System.Data (3)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
2425
Task<int>.
Factory
.FromAsync(BeginExecuteNonQueryAsync, EndExecuteNonQueryAsync, null).ContinueWith((t) => {
2489
Task<SqlDataReader>.
Factory
.FromAsync(BeginExecuteReaderAsync, EndExecuteReaderAsync, behavior, null).ContinueWith((t) => {
2593
Task<XmlReader>.
Factory
.FromAsync(BeginExecuteXmlReaderAsync, EndExecuteXmlReaderAsync, null).ContinueWith((t) => {
System.ServiceModel (1)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
288
return Task<T>.
Factory
.FromAsync<ServiceChannel, ProxyOperationRuntime, object[]>(beginCallDelegate, endCallDelegate, channel, operation, inputParameters, OperationContext.Current);
System.Xml (1)
System\Xml\XmlDownloadManagerAsync.cs (1)
43
WebResponse resp = await Task<WebResponse>.
Factory
.FromAsync(req.BeginGetResponse, req.EndGetResponse, null).ConfigureAwait(false);