54 references to FtpStatusCode
System (54)
net\System\Net\_CommandStream.cs (1)
169
protected Exception GenerateException(
FtpStatusCode
code, string statusDescription, Exception innerException) {
net\System\Net\_FtpControlStream.cs (19)
66
internal
FtpStatusCode
StatusCode;
231
StatusCode =
FtpStatusCode
.Undefined;
253
FtpStatusCode
status = (
FtpStatusCode
) response.Status;
258
if (status !=
FtpStatusCode
.ClosingControl)
272
if (status ==
FtpStatusCode
.SendUserCommand)
278
else if (status ==
FtpStatusCode
.ServiceTemporarilyNotAvailable)
306
if (status ==
FtpStatusCode
.LoggedInProceed)
313
else if (status ==
FtpStatusCode
.NotLoggedIn &&
325
if (status ==
FtpStatusCode
.ServiceNotAvailable) {
335
if (status ==
FtpStatusCode
.NeedLoginAccount || status ==
FtpStatusCode
.LoggedInProceed)
355
if (status ==
FtpStatusCode
.OpeningData || status ==
FtpStatusCode
.DataAlreadyOpen)
387
if (status ==
FtpStatusCode
.LoggedInProceed)
392
else if (status ==
FtpStatusCode
.ClosingControl)
400
else if (status ==
FtpStatusCode
.ServerWantsSecureSession)
416
else if (status ==
FtpStatusCode
.FileStatus)
426
else if (status ==
FtpStatusCode
.PathnameCreated)
net\System\Net\_FtpDataStream.cs (1)
86
&& response.StatusCode ==
FtpStatusCode
.ConnectionClosed)
net\System\Net\_NetRes.cs (1)
111
public static string GetWebStatusCodeString(
FtpStatusCode
statusCode, string statusDescription) {
net\System\Net\Cache\FtpRequestCacheValidator.cs (13)
282
if (resp.StatusCode ==
FtpStatusCode
.FileStatus)
359
if (resp.StatusCode !=
FtpStatusCode
.OpeningData && resp.StatusCode !=
FtpStatusCode
.FileStatus)
407
resp.StatusCode ==
FtpStatusCode
.OpeningData ||
408
resp.StatusCode ==
FtpStatusCode
.DataAlreadyOpen ||
409
resp.StatusCode ==
FtpStatusCode
.FileActionOK ||
410
resp.StatusCode ==
FtpStatusCode
.ClosingData)
430
if (resp.StatusCode !=
FtpStatusCode
.OpeningData
431
&& resp.StatusCode !=
FtpStatusCode
.DataAlreadyOpen
432
&& resp.StatusCode !=
FtpStatusCode
.ClosingData)
434
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_not_updated_based_on_ftp_response_status,
FtpStatusCode
.OpeningData.ToString() + "|" +
FtpStatusCode
.DataAlreadyOpen.ToString() + "|" +
FtpStatusCode
.ClosingData.ToString(), resp.StatusCode.ToString()));
net\System\Net\FtpWebRequest.cs (14)
1300
else if (connection!= null && connection.StatusCode !=
FtpStatusCode
.Undefined)
1941
m_FtpWebResponse = new FtpWebResponse(responseStream, -1, m_Uri,
FtpStatusCode
.Undefined, null, DateTime.Now, null, null, null);
2080
UsePassive?
FtpStatusCode
.DataAlreadyOpen:
FtpStatusCode
.OpeningData,
2081
(UsePassive?
FtpStatusCode
.DataAlreadyOpen:
FtpStatusCode
.OpeningData).ToString(),
2147
UsePassive?
FtpStatusCode
.DataAlreadyOpen:
FtpStatusCode
.OpeningData,
2148
(UsePassive?
FtpStatusCode
.DataAlreadyOpen:
FtpStatusCode
.OpeningData).ToString(),
2176
if (m_Connection.StatusCode ==
FtpStatusCode
.OpeningData && m_FtpWebResponse.ContentLength == 0)
2188
FtpStatusCode
rightStatus = UsePassive?
FtpStatusCode
.DataAlreadyOpen:
FtpStatusCode
.OpeningData;
net\System\Net\FtpWebResponse.cs (5)
26
private
FtpStatusCode
m_StatusCode;
36
internal FtpWebResponse(Stream responseStream, long contentLength, Uri responseUri,
FtpStatusCode
statusCode, string statusLine, DateTime lastModified, string bannerMessage, string welcomeMessage, string exitMessage) {
58
internal void UpdateStatus(
FtpStatusCode
statusCode, string statusLine, string exitMessage) {
180
public
FtpStatusCode
StatusCode {
183
return ((
FtpStatusCode
) ((int) m_HttpWebResponse.StatusCode));