Class MediaStorageBase
Defines a media storage
Inheritance
Inherited Members
Namespace: ImageVault.Core.Common.Storage
Assembly: ImageVault.Core.dll
Syntax
public abstract class MediaStorageBase : IMediaStorage, ICorePlugin
Constructors
MediaStorageBase()
Declaration
protected MediaStorageBase()
Methods
CanDeleteContent()
If it is posible to delete itenms from the storage
Declaration
public abstract bool CanDeleteContent()
Returns
Type | Description |
---|---|
System.Boolean |
CanReadBinaryContent()
Checks if the storage can deliver Binary content data
Declaration
public abstract bool CanReadBinaryContent()
Returns
Type | Description |
---|---|
System.Boolean |
CanStoreMedia(MediaContent)
Checks if the store can store the supplied Media
Declaration
public abstract bool CanStoreMedia(MediaContent content)
Parameters
Type | Name | Description |
---|---|---|
MediaContent | content |
Returns
Type | Description |
---|---|
System.Boolean |
GetDisplayInformation(Media, DbMediaContentReference)
Null
Declaration
[Obsolete("Not used any more. Use IMediaRenderer concept instead")]
public virtual DisplayInformation GetDisplayInformation(Media info, DbMediaContentReference reference)
Parameters
Type | Name | Description |
---|---|---|
Media | info | Media info to get display information for. |
DbMediaContentReference | reference | Db Reference. |
Returns
Type | Description |
---|---|
DisplayInformation | Null |
GetLicenseAgreement()
Default is that there is no license agreement.
Declaration
public virtual StorageLicenseAgreement GetLicenseAgreement()
Returns
Type | Description |
---|---|
StorageLicenseAgreement | Null |
Init(IServiceFactory)
Initiates the plug-in. This method is called once when the Plug-in has been created.
Declaration
public abstract void Init(IServiceFactory serviceFactory)
Parameters
Type | Name | Description |
---|---|---|
IServiceFactory | serviceFactory | The IServiceFactory that the plug-in should use. |
ReadMediaContent(DbMediaContentReference, MediaContentRequestParameters)
Reads the media content from the storage
Declaration
public abstract 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
public abstract void RemoveMediaContent(DbMediaContentReference reference)
Parameters
Type | Name | Description |
---|---|---|
DbMediaContentReference | reference |
StoreMedia(MediaContent)
Stores the supplied MediaItemContent
Declaration
public abstract 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
public virtual bool SupportsFeature(MediaStorageFeature feature)
Parameters
Type | Name | Description |
---|---|---|
MediaStorageFeature | feature |
Returns
Type | Description |
---|---|
System.Boolean |