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