Interface IMediaStorage
Defines a media storage
Inherited Members
Namespace: ImageVault.Core.Common.Storage
Assembly: ImageVault.Core.dll
Syntax
public interface IMediaStorage : ICorePlugin
Methods
CanDeleteContent()
If it is posible to delete itenms from the storage
Declaration
bool CanDeleteContent()
Returns
Type | Description |
---|---|
System.Boolean |
CanReadBinaryContent()
Checks if the storage can deliver Binary content data
Declaration
bool CanReadBinaryContent()
Returns
Type | Description |
---|---|
System.Boolean |
CanStoreMedia(MediaContent)
Checks if the store can store the supplied Media
Declaration
bool CanStoreMedia(MediaContent content)
Parameters
Type | Name | Description |
---|---|---|
MediaContent | content |
Returns
Type | Description |
---|---|
System.Boolean |
GetDisplayInformation(Media, DbMediaContentReference)
Populates content information from the storage without reading the whole content
Declaration
[Obsolete("Not used any more. Use IMediaRenderer concept instead")]
DisplayInformation GetDisplayInformation(Media info, DbMediaContentReference reference)
Parameters
Type | Name | Description |
---|---|---|
Media | info | |
DbMediaContentReference | reference |
Returns
Type | Description |
---|---|
DisplayInformation |
GetLicenseAgreement()
Gets the license agreement for using this storage
Declaration
StorageLicenseAgreement GetLicenseAgreement()
Returns
Type | Description |
---|---|
StorageLicenseAgreement |
ReadMediaContent(DbMediaContentReference, MediaContentRequestParameters)
Reads the media content from the storage
Declaration
MediaContent ReadMediaContent(DbMediaContentReference reference, MediaContentRequestParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
DbMediaContentReference | reference | The DbMediaContentReference to read |
MediaContentRequestParameters | parameters | The MediaContentRequestParameters that indicates what parts of the content that should be returned |
Returns
Type | Description |
---|---|
MediaContent | The read MediaContent |
RemoveMediaContent(DbMediaContentReference)
Removes the supplied DbMediaContentReference from the storage
Declaration
void RemoveMediaContent(DbMediaContentReference reference)
Parameters
Type | Name | Description |
---|---|---|
DbMediaContentReference | reference |
StoreMedia(MediaContent)
Stores the supplied MediaItemContent
Declaration
void StoreMedia(MediaContent content)
Parameters
Type | Name | Description |
---|---|---|
MediaContent | content | The actual MediaContent to store |
SupportsFeature(MediaStorageFeature)
Checks if a storage supports a specified feature
Declaration
bool SupportsFeature(MediaStorageFeature feature)
Parameters
Type | Name | Description |
---|---|---|
MediaStorageFeature | feature |
Returns
Type | Description |
---|---|
System.Boolean |