terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ EnsureFtpWebResponse()

void System.Net.FtpWebRequest.EnsureFtpWebResponse ( Exception exception)
inlineprivate

Definition at line 1320 of file FtpWebRequest.cs.

1321 {
1323 long contentLength;
1324 if (ftpWebResponse == null || (ftpWebResponse != null && this._stream != null))
1325 {
1326 object syncObject = this._syncObject;
1328 Stream stream;
1329 if (ftpWebResponse2 != null)
1330 {
1331 if (ftpWebResponse2 == null)
1332 {
1333 goto IL_0090;
1334 }
1335 if (ftpWebResponse2 == null)
1336 {
1337 return;
1338 }
1339 }
1340 else
1341 {
1342 stream = this._stream;
1343 }
1344 FtpMethodFlags flags = this._methodInfo.Flags;
1345 if (stream != null)
1346 {
1347 Stream stream2 = this._stream;
1348 Stream stream3 = this._stream;
1349 int readWriteTimeout = this._readWriteTimeout;
1350 Stream stream4 = this._stream;
1352 }
1353 FtpControlStream connection = this._connection;
1354 if (connection != null)
1355 {
1356 contentLength = connection._contentLength;
1357 return;
1358 }
1359 if (this._ftpWebResponse == null)
1360 {
1361 if (connection != null)
1362 {
1363 global::System.Uri responseUri = connection._responseUri;
1364 FtpStatusCode statusCode = connection.StatusCode;
1365 string statusLine = connection.StatusLine;
1366 DateTime lastModified = connection._lastModified;
1367 string bannerMessage = connection.BannerMessage;
1368 string welcomeMessage = connection.WelcomeMessage;
1369 string exitMessage = connection.ExitMessage;
1370 return;
1371 }
1372 global::System.Uri uri = this._uri;
1374 return;
1375 }
1376 IL_0090:
1377 long num = 0L;
1378 if (contentLength != 0L)
1379 {
1380 Monitor.Exit(syncObject);
1381 }
1382 if (num != 0L)
1383 {
1384 throw new OutOfMemoryException();
1385 }
1386 if (3 != 0)
1387 {
1388 return;
1389 }
1390 }
1391 if (contentLength == 0L)
1392 {
1393 }
1394 bool isEnabled = NetEventSource.IsEnabled;
1396 if (ftpWebResponse3 == null || ftpWebResponse3 != null)
1397 {
1398 Stream responseStream = this._ftpWebResponse._responseStream;
1399 if (responseStream == null || responseStream != null)
1400 {
1402 NetEventSource.Info(this, formattableString, "EnsureFtpWebResponse");
1403 return;
1404 }
1405 }
1406 throw new ArrayTypeMismatchException();
1407 }
class f__AnonymousType0<< Count > j__TPar
readonly global::System.Uri _uri
FtpControlStream _connection
FtpWebResponse _ftpWebResponse
static void Exit(object obj)
Definition Monitor.cs:47
static DateTime Now
Definition DateTime.cs:530

References System.Net.FtpWebRequest._connection, System.Net.FtpWebRequest._ftpWebResponse, System.Net.FtpWebRequest._methodInfo, System.Net.FtpWebRequest._readWriteTimeout, System.Net.FtpWebResponse._responseStream, System.Net.FtpWebRequest._stream, System.Net.FtpWebRequest._syncObject, System.Net.FtpWebRequest._uri, System.Threading.Monitor.Exit(), System.Net.FtpMethodInfo.Flags, System.Net.NetEventSource.Info(), System.Net.NetEventSource.IsEnabled, j__TPar, System.L, and System.DateTime.Now.