C# Class Microsoft.WindowsAzure.MobileServices.Files.StorageProviders.AzureBlobStorageProvider

Inheritance: IStorageProvider
ファイルを表示 Open project: Azure/azure-mobile-apps-net-files-client

Public Methods

Method Description
AzureBlobStorageProvider ( IMobileServiceClient client ) : System
DownloadFileToStreamAsync ( MobileServiceFile file, Stream stream, StorageToken storageToken ) : System.Threading.Tasks.Task
GetFileAsync ( MobileServiceFile file, StorageToken token ) : Task
GetFileUriAsync ( StorageToken storageToken, string fileName ) : Task
UploadFileAsync ( MobileServiceFileMetadata metadata, IMobileServiceFileDataSource dataSource, StorageToken storageToken ) : System.Threading.Tasks.Task

Private Methods

Method Description
GetBlobReference ( StorageToken token, string fileName ) : Task

Method Details

AzureBlobStorageProvider() public method

public AzureBlobStorageProvider ( IMobileServiceClient client ) : System
client IMobileServiceClient
return System

DownloadFileToStreamAsync() public method

public DownloadFileToStreamAsync ( MobileServiceFile file, Stream stream, StorageToken storageToken ) : System.Threading.Tasks.Task
file MobileServiceFile
stream Stream
storageToken Microsoft.WindowsAzure.MobileServices.Files.Identity.StorageToken
return System.Threading.Tasks.Task

GetFileAsync() public method

public GetFileAsync ( MobileServiceFile file, StorageToken token ) : Task
file MobileServiceFile
token Microsoft.WindowsAzure.MobileServices.Files.Identity.StorageToken
return Task

GetFileUriAsync() public method

public GetFileUriAsync ( StorageToken storageToken, string fileName ) : Task
storageToken Microsoft.WindowsAzure.MobileServices.Files.Identity.StorageToken
fileName string
return Task

UploadFileAsync() public method

public UploadFileAsync ( MobileServiceFileMetadata metadata, IMobileServiceFileDataSource dataSource, StorageToken storageToken ) : System.Threading.Tasks.Task
metadata Microsoft.WindowsAzure.MobileServices.Files.Metadata.MobileServiceFileMetadata
dataSource IMobileServiceFileDataSource
storageToken Microsoft.WindowsAzure.MobileServices.Files.Identity.StorageToken
return System.Threading.Tasks.Task