C# Class AzureBlobFileSystem.AzureBlobStorageProvider

Inheritance: IStorageProvider
Datei anzeigen Open project: pofider/AzureBlobFileSystem Class Usage Examples

Public Properties

Property Type Description
ContainerFactory CloudBlobContainer>.Func

Public Methods

Method Description
AzureBlobStorageProvider ( Microsoft.WindowsAzure.Storage.CloudStorageAccount storageAccount ) : System
Combine ( string path1, string path2 ) : string
CreateFile ( string path ) : IStorageFile
CreateFolder ( string path ) : void
DeleteFile ( string path ) : void
DeleteFolder ( string path ) : void
FileExists ( string path ) : bool
GetFile ( string path ) : IStorageFile
ListFiles ( string path ) : IEnumerable
ListFolders ( string path ) : IEnumerable
RenameFile ( string path, string newPath ) : void
RenameFolder ( string path, string newPath ) : void
SaveStream ( string path, Stream inputStream ) : void
TryCreateFolder ( string path ) : bool
TrySaveStream ( string path, Stream inputStream ) : bool

Private Methods

Method Description
CreateContainer ( string name ) : CloudBlobContainer
EnsurePathIsRelativeAndEnsureContainer ( string &path ) : CloudBlobContainer
GetContentType ( string path ) : string

Returns the mime-type of the specified file path, looking into IIS configuration and the Registry

Method Details

AzureBlobStorageProvider() public method

public AzureBlobStorageProvider ( Microsoft.WindowsAzure.Storage.CloudStorageAccount storageAccount ) : System
storageAccount Microsoft.WindowsAzure.Storage.CloudStorageAccount
return System

Combine() public method

public Combine ( string path1, string path2 ) : string
path1 string
path2 string
return string

CreateFile() public method

public CreateFile ( string path ) : IStorageFile
path string
return IStorageFile

CreateFolder() public method

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

DeleteFile() public method

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

DeleteFolder() public method

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

FileExists() public method

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

GetFile() public method

public GetFile ( string path ) : IStorageFile
path string
return IStorageFile

ListFiles() public method

public ListFiles ( string path ) : IEnumerable
path string
return IEnumerable

ListFolders() public method

public ListFolders ( string path ) : IEnumerable
path string
return IEnumerable

RenameFile() public method

public RenameFile ( string path, string newPath ) : void
path string
newPath string
return void

RenameFolder() public method

public RenameFolder ( string path, string newPath ) : void
path string
newPath string
return void

SaveStream() public method

public SaveStream ( string path, Stream inputStream ) : void
path string
inputStream Stream
return void

TryCreateFolder() public method

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

TrySaveStream() public method

public TrySaveStream ( string path, Stream inputStream ) : bool
path string
inputStream Stream
return bool

Property Details

ContainerFactory public_oe property

public Func ContainerFactory
return CloudBlobContainer>.Func