C# Class Telerik.Sitefinity.Amazon.BlobStorage.AmazonBlobStorageProvider

This provider implements the logic for persisting BLOB data on Amazon S3 Storage.
Inheritance: CloudBlobStorageProvider
Afficher le fichier Open project: Sitefinity/amazon-s3-provider

Méthodes publiques

Méthode Description
BlobExists ( IBlobContentLocation location ) : bool

Determines whether a blob item under the specified location exists.

Copy ( IBlobContentLocation source, IBlobContentLocation destination ) : void

Copies the source content to the specified destination on the remote blob storage.

Delete ( IBlobContentLocation location ) : void

Deletes the blob item stored under the specified blob location

GetDownloadStream ( IBlobContent content ) : Stream

Gets the download stream for a specific content..

GetItemUrl ( IBlobContentLocation content ) : string

Resolves the content item's external URL on the remote blob storage.

GetProperties ( IBlobContentLocation location ) : IBlobProperties

Gets the content type, cache control settings, etc. of a blob.

GetUploadStream ( IBlobContent content ) : Stream

Gets the upload stream for a specific content.

SetProperties ( IBlobContentLocation location, IBlobProperties properties ) : void

Sets the properties, like cacheControl, content type, etc.

Upload ( IBlobContent content, Stream source, int bufferSize ) : long

Uploads the specified content item to the remote blob storage.

Méthodes protégées

Méthode Description
InitializeStorage ( NameValueCollection config ) : void

Initializes access to the remote storage.

Method Details

BlobExists() public méthode

Determines whether a blob item under the specified location exists.
public BlobExists ( IBlobContentLocation location ) : bool
location IBlobContentLocation Descriptor of the item on the remote blob storage.
Résultat bool

Copy() public méthode

Copies the source content to the specified destination on the remote blob storage.
public Copy ( IBlobContentLocation source, IBlobContentLocation destination ) : void
source IBlobContentLocation Descriptor of the source item on the remote blob storage.
destination IBlobContentLocation Descriptor of the destination item on the remote blob storage.
Résultat void

Delete() public méthode

Deletes the blob item stored under the specified blob location
public Delete ( IBlobContentLocation location ) : void
location IBlobContentLocation Descriptor of the item on the remote blob storage.
Résultat void

GetDownloadStream() public méthode

Gets the download stream for a specific content..
public GetDownloadStream ( IBlobContent content ) : Stream
content IBlobContent Descriptor of the item on the remote blob storage.
Résultat Stream

GetItemUrl() public méthode

Resolves the content item's external URL on the remote blob storage.
public GetItemUrl ( IBlobContentLocation content ) : string
content IBlobContentLocation Descriptor of the item on the remote blob storage for which to retrieve the URL.
Résultat string

GetProperties() public méthode

Gets the content type, cache control settings, etc. of a blob.
public GetProperties ( IBlobContentLocation location ) : IBlobProperties
location IBlobContentLocation Descriptor of the item on the remote blob storage.
Résultat IBlobProperties

GetUploadStream() public méthode

Gets the upload stream for a specific content.
public GetUploadStream ( IBlobContent content ) : Stream
content IBlobContent Descriptor of the item on the remote blob storage.
Résultat Stream

InitializeStorage() protected méthode

Initializes access to the remote storage.
protected InitializeStorage ( NameValueCollection config ) : void
config System.Collections.Specialized.NameValueCollection The collection of parameters (each by its name and value) of the current provider's configuration settings.
Résultat void

SetProperties() public méthode

Sets the properties, like cacheControl, content type, etc.
public SetProperties ( IBlobContentLocation location, IBlobProperties properties ) : void
location IBlobContentLocation Descriptor of the item on the remote blob storage.
properties IBlobProperties The properties to set.
Résultat void

Upload() public méthode

Uploads the specified content item to the remote blob storage.
public Upload ( IBlobContent content, Stream source, int bufferSize ) : long
content IBlobContent Descriptor of the item on the remote blob storage.
source Stream The source item's content stream.
bufferSize int Size of the upload buffer.
Résultat long