C# Class SimpleDeployNet.Core.MsDeployFileService

Inheritance: IMsDeployFileService
Show file Open project: dougrathbone/simpledeploynet Class Usage Examples

Public Methods

Method Description
DeleteFile ( ConnectionProperties properties, string relativeRemoteFileName ) : bool

Deletes the file.

DownloadFile ( ConnectionProperties properties, string relativeRemoteFileName, string fullLocalFilePathToSave ) : bool

Downloads a remote file.

FetchFileList ( ConnectionProperties properties ) : DeploymentObjectList

Fetches the remote servers file list.

UploadFile ( ConnectionProperties properties, string relativeDestinationFileName, string fullLocalFilePath ) : bool

Uploads a file to the remote host.

Private Methods

Method Description
BuildMsDeployUri ( ConnectionProperties properties ) : Uri
GetDeploymentObjectAsXmlDocument ( DeploymentObject obj ) : XmlDocument
WriteXmlObject ( DeploymentObject obj, XmlTextWriter writer ) : void

Method Details

DeleteFile() public method

Deletes the file.
Connection properties cannot be null.;properties
public DeleteFile ( ConnectionProperties properties, string relativeRemoteFileName ) : bool
properties ConnectionProperties The properties.
relativeRemoteFileName string Name of the relative remote file.
return bool

DownloadFile() public method

Downloads a remote file.
Connection properties cannot be null.;properties
public DownloadFile ( ConnectionProperties properties, string relativeRemoteFileName, string fullLocalFilePathToSave ) : bool
properties ConnectionProperties The properties.
relativeRemoteFileName string Name of the relative remote file.
fullLocalFilePathToSave string The full local file path to save.
return bool

FetchFileList() public method

Fetches the remote servers file list.
Connection properties cannot be null.;properties
public FetchFileList ( ConnectionProperties properties ) : DeploymentObjectList
properties ConnectionProperties The properties.
return DeploymentObjectList

UploadFile() public method

Uploads a file to the remote host.
Connection properties cannot be null.;properties
public UploadFile ( ConnectionProperties properties, string relativeDestinationFileName, string fullLocalFilePath ) : bool
properties ConnectionProperties The properties.
relativeDestinationFileName string Name of the relative destination file.
fullLocalFilePath string The full local file path.
return bool