C# Class TwentyTwenty.Storage.Amazon.AmazonStorageProvider

Inheritance: IStorageProvider
Afficher le fichier Open project: 2020IP/TwentyTwenty.Storage

Méthodes publiques

Méthode Description
AmazonStorageProvider ( AmazonProviderOptions options ) : Amazon.S3
DeleteBlobAsync ( string containerName, string blobName ) : System.Threading.Tasks.Task
DeleteContainerAsync ( string containerName ) : System.Threading.Tasks.Task
GetBlobDescriptorAsync ( string containerName, string blobName ) : Task
GetBlobSasUrl ( string containerName, string blobName, DateTimeOffset expiry, bool isDownload = false, string fileName = null, string contentType = null, BlobUrlAccess access = BlobUrlAccess.Read ) : string
GetBlobStreamAsync ( string containerName, string blobName ) : Task
GetBlobUrl ( string containerName, string blobName ) : string
ListBlobsAsync ( string containerName ) : Task>
SaveBlobStreamAsync ( string containerName, string blobName, Stream source, BlobProperties properties = null, bool closeStream = true ) : System.Threading.Tasks.Task
UpdateBlobPropertiesAsync ( string containerName, string blobName, BlobProperties properties ) : System.Threading.Tasks.Task

Private Methods

Méthode Description
CreateChunkedUpload ( string containerName, string blobName, Stream source, BlobProperties properties, bool closeStream ) : TransferUtilityUploadRequest
CreateUpdateRequest ( string containerName, string blobName, BlobProperties properties ) : CopyObjectRequest
CreateUpload ( string containerName, string blobName, Stream source, BlobProperties properties, bool closeStream ) : PutObjectRequest
GenerateKeyName ( string containerName, string blobName ) : string
GetCannedACL ( BlobProperties properties ) : S3CannedACL

Method Details

AmazonStorageProvider() public méthode

public AmazonStorageProvider ( AmazonProviderOptions options ) : Amazon.S3
options AmazonProviderOptions
Résultat Amazon.S3

DeleteBlobAsync() public méthode

public DeleteBlobAsync ( string containerName, string blobName ) : System.Threading.Tasks.Task
containerName string
blobName string
Résultat System.Threading.Tasks.Task

DeleteContainerAsync() public méthode

public DeleteContainerAsync ( string containerName ) : System.Threading.Tasks.Task
containerName string
Résultat System.Threading.Tasks.Task

GetBlobDescriptorAsync() public méthode

public GetBlobDescriptorAsync ( string containerName, string blobName ) : Task
containerName string
blobName string
Résultat Task

GetBlobSasUrl() public méthode

public GetBlobSasUrl ( string containerName, string blobName, DateTimeOffset expiry, bool isDownload = false, string fileName = null, string contentType = null, BlobUrlAccess access = BlobUrlAccess.Read ) : string
containerName string
blobName string
expiry DateTimeOffset
isDownload bool
fileName string
contentType string
access BlobUrlAccess
Résultat string

GetBlobStreamAsync() public méthode

public GetBlobStreamAsync ( string containerName, string blobName ) : Task
containerName string
blobName string
Résultat Task

GetBlobUrl() public méthode

public GetBlobUrl ( string containerName, string blobName ) : string
containerName string
blobName string
Résultat string

ListBlobsAsync() public méthode

public ListBlobsAsync ( string containerName ) : Task>
containerName string
Résultat Task>

SaveBlobStreamAsync() public méthode

public SaveBlobStreamAsync ( string containerName, string blobName, Stream source, BlobProperties properties = null, bool closeStream = true ) : System.Threading.Tasks.Task
containerName string
blobName string
source Stream
properties BlobProperties
closeStream bool
Résultat System.Threading.Tasks.Task

UpdateBlobPropertiesAsync() public méthode

public UpdateBlobPropertiesAsync ( string containerName, string blobName, BlobProperties properties ) : System.Threading.Tasks.Task
containerName string
blobName string
properties BlobProperties
Résultat System.Threading.Tasks.Task