Class DiskBlobStorageProvider
Implements
System.ICloneable
Inherited Members
Namespace: Mediachase.BusinessFoundation.Blob
Assembly: Mediachase.BusinessFoundation.dll
Version: 10.8.0Syntax
public class DiskBlobStorageProvider : BlobStorageProvider, ICloneable
Constructors
DiskBlobStorageProvider()
Declaration
public DiskBlobStorageProvider()
Properties
BasePath
Declaration
public string BasePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Clone()
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
System.Object |
CreateStream(BlobInfo)
Creates the stream.
Declaration
public override Stream CreateStream(BlobInfo blobInfo)
Parameters
Type | Name | Description |
---|---|---|
BlobInfo | blobInfo | The BLOB info. |
Returns
Type | Description |
---|---|
System.IO.Stream |
Overrides
GetBlobFileName(BlobInfo)
Gets the name of the BLOB file.
Declaration
public virtual string GetBlobFileName(BlobInfo blobInfo)
Parameters
Type | Name | Description |
---|---|---|
BlobInfo | blobInfo | The BLOB information. |
Returns
Type | Description |
---|---|
System.String |
GetBlobInfoFileName(Guid)
Gets the name of the BLOB info file.
Declaration
protected virtual string GetBlobInfoFileName(Guid uid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | uid | The uid. |
Returns
Type | Description |
---|---|
System.String |
GetInfo(Guid)
Gets the info.
Declaration
public override BlobInfo GetInfo(Guid uidStream)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | uidStream | The uid stream. |
Returns
Type | Description |
---|---|
BlobInfo |
Overrides
Initialize(String, NameValueCollection)
Initializes the specified name.
Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Collections.Specialized.NameValueCollection | config | The config. |
Overrides
ReadStream(BlobInfo)
Reads the stream.
Declaration
public override Stream ReadStream(BlobInfo blobInfo)
Parameters
Type | Name | Description |
---|---|---|
BlobInfo | blobInfo | The BLOB info. |
Returns
Type | Description |
---|---|
System.IO.Stream |
Overrides
ReleaseStream(Guid)
Releases the stream.
Declaration
public override void ReleaseStream(Guid uidStream)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | uidStream | The uid stream. |
Overrides
RetrieveBlobInfo(Guid)
Retrieves the BLOB info.
Declaration
protected virtual BlobInfo RetrieveBlobInfo(Guid uidStream)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | uidStream | The uid stream. |
Returns
Type | Description |
---|---|
BlobInfo |
Search(String)
Declaration
public override BlobInfo[] Search(string keyword)
Parameters
Type | Name | Description |
---|---|---|
System.String | keyword |
Returns
Type | Description |
---|---|
BlobInfo[] |
Overrides
StoreBlobInfo(BlobInfo)
Stores the BLOB info.
Declaration
protected virtual void StoreBlobInfo(BlobInfo blobInfo)
Parameters
Type | Name | Description |
---|---|---|
BlobInfo | blobInfo | The BLOB info. |
StreamCommited(BlobInfo, BlobInfo)
Commits the stream.
Declaration
public override void StreamCommited(BlobInfo newBlobInfo, BlobInfo oldBlobInfo)
Parameters
Type | Name | Description |
---|---|---|
BlobInfo | newBlobInfo | The new BLOB info. |
BlobInfo | oldBlobInfo | The old BLOB info. |
Overrides
Implements
System.ICloneable