C# Class Achilles.Acme.Storage.Azure.AzureCloudStorageProvider

Azure specific implementation for the CloudStorageProvider.
Inheritance: Achilles.Acme.Storage.Provider.CloudStorageProvider
Mostrar archivo Open project: Achilles-Software/CloudStorageProvider

Public Methods

Method Description
AzureCloudStorageProvider ( ) : System
CopyFile ( string sourcePath, string destPath ) : void

Copy source blob to destination blob.

CreateDirectory ( string path ) : bool
DeleteDirectory ( string path, bool recursive ) : void
DeleteFile ( string path ) : void
DirectoryExists ( string path ) : bool
FileAttributes ( string path ) : FileAttributes
FileExists ( string path ) : bool
FileOpenRead ( string path ) : System.IO.Stream
FileOpenWrite ( string path ) : System.IO.Stream
FileUploadFromStream ( string path, System fileStream ) : void
GetDirectories ( DirectoryInfo dirInfo ) : Achilles.Acme.Storage.IO.DirectoryInfo[]
GetDirectories ( string path ) : string[]

Gets a list of directory names within the directory specified by path.

GetDirectoryFiles ( DirectoryInfo dirInfo ) : Achilles.Acme.Storage.IO.FileInfo[]
GetDirectoryFiles ( string path ) : string[]
Initialize ( string name, NameValueCollection config ) : void
MoveDirectory ( string sourcePath, string destPath ) : void
MoveFile ( string sourceFileName, string destFileName ) : void

Private Methods

Method Description
GetAzurePath ( string path ) : string

Get the full path (as in URI) of a blob folder or file ( container name + path )

GetCloudBlockBlob ( string path ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob

Method Details

AzureCloudStorageProvider() public method

public AzureCloudStorageProvider ( ) : System
return System

CopyFile() public method

Copy source blob to destination blob.
public CopyFile ( string sourcePath, string destPath ) : void
sourcePath string path to source file
destPath string path to destination file
return void

CreateDirectory() public method

public CreateDirectory ( string path ) : bool
path string
return bool

DeleteDirectory() public method

public DeleteDirectory ( string path, bool recursive ) : void
path string
recursive bool
return void

DeleteFile() public method

public DeleteFile ( string path ) : void
path string
return void

DirectoryExists() public method

public DirectoryExists ( string path ) : bool
path string
return bool

FileAttributes() public method

public FileAttributes ( string path ) : FileAttributes
path string
return Achilles.Acme.Storage.IO.FileAttributes

FileExists() public method

public FileExists ( string path ) : bool
path string
return bool

FileOpenRead() public method

public FileOpenRead ( string path ) : System.IO.Stream
path string
return System.IO.Stream

FileOpenWrite() public method

public FileOpenWrite ( string path ) : System.IO.Stream
path string
return System.IO.Stream

FileUploadFromStream() public method

public FileUploadFromStream ( string path, System fileStream ) : void
path string
fileStream System
return void

GetDirectories() public method

public GetDirectories ( DirectoryInfo dirInfo ) : Achilles.Acme.Storage.IO.DirectoryInfo[]
dirInfo Achilles.Acme.Storage.IO.DirectoryInfo
return Achilles.Acme.Storage.IO.DirectoryInfo[]

GetDirectories() public method

Gets a list of directory names within the directory specified by path.
public GetDirectories ( string path ) : string[]
path string directory path
return string[]

GetDirectoryFiles() public method

public GetDirectoryFiles ( DirectoryInfo dirInfo ) : Achilles.Acme.Storage.IO.FileInfo[]
dirInfo Achilles.Acme.Storage.IO.DirectoryInfo
return Achilles.Acme.Storage.IO.FileInfo[]

GetDirectoryFiles() public method

public GetDirectoryFiles ( string path ) : string[]
path string
return string[]

Initialize() public method

public Initialize ( string name, NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
return void

MoveDirectory() public method

public MoveDirectory ( string sourcePath, string destPath ) : void
sourcePath string
destPath string
return void

MoveFile() public method

public MoveFile ( string sourceFileName, string destFileName ) : void
sourceFileName string
destFileName string
return void