10 writes to Result
System (10)
net\System\Net\mail\BaseWriter.cs (1)
136multiResult.Result = s;
net\System\Net\mail\MultiAsyncResult.cs (1)
35this.Result = result;
net\System\Net\mail\SmtpCommands.cs (4)
34multiResult.Result = info; 64multiResult.Result = info; 126multiResult.Result = lines; 151multiResult.Result = lines;
net\System\Net\SecureProtocols\_NegoState.cs (1)
722lazyResult.Result = exception;
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (2)
495Result = -1; 538Result = -1;
net\System\Net\Sockets\Socket.cs (1)
5108asyncResult.Result = CreateAcceptSocket(acceptedSocketHandle, m_RightEndPoint.Create(socketAddress), false);
82 references to Result
System (82)
net\System\Net\_Connection.cs (2)
3280GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::PollAndRead() InternalPeekCompleted:" + request.ConnectionReaderAsyncResult.InternalPeekCompleted.ToString() + " Result:" + ValidationHelper.ToString(request.ConnectionReaderAsyncResult.Result)); 3281if (request.ConnectionReaderAsyncResult.InternalPeekCompleted && request.ConnectionReaderAsyncResult.Result == null && CanBePooled)
net\System\Net\_StreamFramer.cs (5)
331if (workerResult.Result is Exception) { 332throw (Exception)(workerResult.Result); 335int size = (int)workerResult.Result; 473if (workerResult.Result is Exception) { 474throw (Exception)(workerResult.Result);
net\System\Net\_TLSstream.cs (3)
206Exception e = bufferResult.Result as Exception; 210return (int) bufferResult.Result; 316Exception e = bufferResult.Result as Exception;
net\System\Net\Cache\_CacheStreams.cs (6)
284if (myResult.Result is Exception) { 285throw (Exception)(myResult.Result); 289return (int)myResult.Result; 728if (myResult.Result is Exception) 729throw (Exception)(myResult.Result); 743return (int)myResult.Result;
net\System\Net\DNS.cs (2)
810Exception exception = castedResult.Result as Exception; 816return (IPHostEntry) castedResult.Result;
net\System\Net\HttpListener.cs (2)
1298GlobalLog.Assert(castedAsyncResult.Result is Exception, "EndGetContext|The result is neither a HttpListenerContext nor an Exception."); 1299throw castedAsyncResult.Result as Exception;
net\System\Net\HttpWebRequest.cs (24)
1367if (_WriteAResult.Result is Exception) 1369throw (Exception)_WriteAResult.Result; 1374asyncResult.InvokeCallback(_WriteAResult.Result); 1414GlobalLog.Assert(_ReadAResult.Result is Exception, "HttpWebRequest#{0}::BeginGetRequestStream()|_ReadAResult with successful completion already present on request.", ValidationHelper.HashString(this)); 1415throw (Exception)_ReadAResult.Result; 1488if (Logging.On) Logging.Exception(Logging.Web, this, "EndGetRequestStream", castedAsyncResult.Result as Exception); 1489throw (Exception)castedAsyncResult.Result; 1567GlobalLog.Assert(_ReadAResult.Result is Exception, "HttpWebRequest#{0}::GetRequestStream()|_ReadAResult with successful completion already present on request.", ValidationHelper.HashString(this)); 1568throw (Exception)_ReadAResult.Result; 1606if (Logging.On) Logging.Exception(Logging.Web, this, "EndGetRequestStream", _WriteAResult.Result as Exception); 1607throw (Exception)_WriteAResult.Result; 1989if (Logging.On) Logging.Exit(Logging.Web, this, "BeginGetResponse", _ReadAResult.Result); 1990GlobalLog.Leave("HttpWebRequest#" + ValidationHelper.HashString(this) + "::BeginGetResponse", "Already Completed, response = " + ValidationHelper.HashString(_ReadAResult.Result)); 1991Exception e = _ReadAResult.Result as Exception; 1999asyncResult.InvokeCallback(_ReadAResult.Result); 2078if (Logging.On) Logging.Exception(Logging.Web, this, "EndGetResponse", castedAsyncResult.Result as Exception); 2080throw (Exception) castedAsyncResult.Result; 2198httpWebResponse = _ReadAResult.Result as HttpWebResponse; 2269if (Logging.On) Logging.Exception(Logging.Web, this, "GetResponse", _ReadAResult.Result as Exception); 2271throw (Exception) _ReadAResult.Result; 3820if (exception == null && _ReadAResult.Result != (object) _HttpResponse) 3822WebException webException = _ReadAResult.Result as WebException; 3851WebException webException = HaveResponse ? _ReadAResult.Result as WebException : null; 3963chkResponse = _ReadAResult.Result as HttpWebResponse;
net\System\Net\mail\BaseWriter.cs (1)
135if (!(multiResult.Result is Exception))
net\System\Net\mail\Message.cs (2)
307if (castedAsyncResult.Result is Exception) { 308throw (Exception)castedAsyncResult.Result;
net\System\Net\mail\MimeBasePart.cs (2)
244if (castedAsyncResult.Result is Exception) { 245throw (Exception)castedAsyncResult.Result;
net\System\Net\mail\MultiAsyncResult.cs (2)
43base.InvokeCallback(Result); 61return thisPtr.Result;
net\System\Net\mail\SmtpClient.cs (1)
848Exception exception = result.Result as Exception;
net\System\Net\mail\SmtpCommands.cs (4)
33if (!(multiResult.Result is Exception)) 63if (!(multiResult.Result is Exception)) 125if (!(multiResult.Result is Exception)) 150if (!(multiResult.Result is Exception))
net\System\Net\SecureProtocols\_NegoState.cs (3)
437Exception e = lazyResult.Result as Exception; 754if (lazyResult.Result is Exception) 757throw (Exception)lazyResult.Result;
net\System\Net\SecureProtocols\_SslState.cs (2)
732Exception e = lazyResult.Result as Exception; 1145buffer = (byte[])lazyResult.Result;
net\System\Net\SecureProtocols\_SslStream.cs (9)
157if (bufferResult.Result is Exception) 159if (bufferResult.Result is IOException) 161throw (Exception)bufferResult.Result; 163throw new IOException(SR.GetString(SR.net_io_read), (Exception)bufferResult.Result); 165return (int) bufferResult.Result; 209if (lazyResult.Result is Exception) 211if (lazyResult.Result is IOException) 213throw (Exception)lazyResult.Result; 215throw new IOException(SR.GetString(SR.net_io_write), (Exception)lazyResult.Result);
net\System\Net\SecureProtocols\NegotiateStream.cs (9)
619if (bufferResult.Result is Exception) 621if (bufferResult.Result is IOException) 623throw (Exception)bufferResult.Result; 625throw new IOException(SR.GetString(SR.net_io_read), (Exception)bufferResult.Result); 627return (int) bufferResult.Result; 688if (bufferResult.Result is Exception) 690if (bufferResult.Result is IOException) 692throw (Exception)bufferResult.Result; 694throw new IOException(SR.GetString(SR.net_io_write), (Exception)bufferResult.Result);
net\System\Net\Sockets\Socket.cs (3)
6152if (castedAsyncResult.Result is Exception) 6154if (s_LoggingEnabled) Logging.Exception(Logging.Sockets, this, "InternalEndConnect", (Exception)castedAsyncResult.Result); 6155throw (Exception)castedAsyncResult.Result;