C# Class TwentyTwenty.Storage.Amazon.AmazonStorageProvider

Inheritance: IStorageProvider
Mostra file Open project: 2020IP/TwentyTwenty.Storage

Public Methods

Method 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

Method 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 method

public AmazonStorageProvider ( AmazonProviderOptions options ) : Amazon.S3
options AmazonProviderOptions
return Amazon.S3

DeleteBlobAsync() public method

public DeleteBlobAsync ( string containerName, string blobName ) : System.Threading.Tasks.Task
containerName string
blobName string
return System.Threading.Tasks.Task

DeleteContainerAsync() public method

public DeleteContainerAsync ( string containerName ) : System.Threading.Tasks.Task
containerName string
return System.Threading.Tasks.Task

GetBlobDescriptorAsync() public method

public GetBlobDescriptorAsync ( string containerName, string blobName ) : Task
containerName string
blobName string
return Task

GetBlobSasUrl() public method

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
return string

GetBlobStreamAsync() public method

public GetBlobStreamAsync ( string containerName, string blobName ) : Task
containerName string
blobName string
return Task

GetBlobUrl() public method

public GetBlobUrl ( string containerName, string blobName ) : string
containerName string
blobName string
return string

ListBlobsAsync() public method

public ListBlobsAsync ( string containerName ) : Task>
containerName string
return Task>

SaveBlobStreamAsync() public method

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
return System.Threading.Tasks.Task

UpdateBlobPropertiesAsync() public method

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