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