C# Class MacBuildTool.FtpManager

显示文件 Open project: vchelaru/FlatRedBall Class Usage Examples

Public Methods

Method Description
IsFtp ( string url ) : bool
SaveFile ( string url, string localFile, string userName, string password ) : void
UploadFile ( string localFileToUpload, string targetUrl, string userName, string password, bool keepAlive ) : void

Private Methods

Method Description
EndGetResponseCallback ( IAsyncResult result ) : void
EndGetStreamCallback ( IAsyncResult result ) : void
GetFtpWebRequest ( string url, string userName, string password, string method, bool keepAlive ) : FtpWebRequest
GetFtpWebRequest ( string url, string userName, string password, string method, bool keepAlive, bool forceBinary ) : FtpWebRequest
StartUploadUsingFtpState ( string targetUrl, string userName, string password, bool keepAlive, FtpState state ) : void
ThrowExceptionIfFtpUrlIsBad ( string url ) : void

Method Details

IsFtp() public static method

public static IsFtp ( string url ) : bool
url string
return bool

SaveFile() public static method

public static SaveFile ( string url, string localFile, string userName, string password ) : void
url string
localFile string
userName string
password string
return void

UploadFile() public static method

public static UploadFile ( string localFileToUpload, string targetUrl, string userName, string password, bool keepAlive ) : void
localFileToUpload string
targetUrl string
userName string
password string
keepAlive bool
return void