C# Class ALFA.Shared.AzureFileStoreContainer

This class encapsulates an Azure backend implementation of the FileStoreContainer abstraction.
Inheritance: FileStoreContainer
Exibir arquivo Open project: ALandFarAway/ALFA-Base-Resources

Public Methods

Method Description
CreateIfNotExists ( ) : bool

Create the container if it doesn't exist. The container is assumed to be private access only.

GetDirectories ( ) : IEnumerable

List all directories directly parented to this container.

GetDirectoryReference ( string RelativeAddress ) : FileStoreDirectory

Obtain a reference to a directory by name.

GetFileReference ( string FileName ) : FileStoreFile

Obtain a reference to a file by name.

GetFiles ( ) : IEnumerable

List all files directly parented to this container.

Private Methods

Method Description
AzureFileStoreContainer ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer Container ) : System

Instantiate a new AzureFileStoreContainer from an Azure container.

Method Details

CreateIfNotExists() public method

Create the container if it doesn't exist. The container is assumed to be private access only.
public CreateIfNotExists ( ) : bool
return bool

GetDirectories() public method

List all directories directly parented to this container.
public GetDirectories ( ) : IEnumerable
return IEnumerable

GetDirectoryReference() public method

Obtain a reference to a directory by name.
public GetDirectoryReference ( string RelativeAddress ) : FileStoreDirectory
RelativeAddress string A string containing the name of the /// virtual blob directory.
return FileStoreDirectory

GetFileReference() public method

Obtain a reference to a file by name.
public GetFileReference ( string FileName ) : FileStoreFile
FileName string A string containing the name of the /// file.
return FileStoreFile

GetFiles() public method

List all files directly parented to this container.
public GetFiles ( ) : IEnumerable
return IEnumerable