14 references to FromAsync
System (11)
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 (2)
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 (2)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
2425Task<int>.Factory.FromAsync(BeginExecuteNonQueryAsync, EndExecuteNonQueryAsync, null).ContinueWith((t) => { 2593Task<XmlReader>.Factory.FromAsync(BeginExecuteXmlReaderAsync, EndExecuteXmlReaderAsync, null).ContinueWith((t) => {
System.Xml (1)
System\Xml\XmlDownloadManagerAsync.cs (1)
43WebResponse resp = await Task<WebResponse>.Factory.FromAsync(req.BeginGetResponse, req.EndGetResponse, null).ConfigureAwait(false);