Class FileBlobProvider

A default implementation used when nothing has been configured ()

Inheritance
System.Object
FileBlobProvider
Inherited Members
Namespace: EPiServer.Framework.Blobs
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
public class FileBlobProvider : BlobProvider

Constructors

FileBlobProvider()

Create a new FileBlobProvider and sets the repository path to the [appDataPath]\blobs directory.

Declaration
public FileBlobProvider()

FileBlobProvider(String)

Create a new FileBlobProvider with a specific repository path.

Declaration
public FileBlobProvider(string path)
Parameters
Type Name Description
System.String path

Properties

Path

Path to blob repository

Declaration
public string Path { get; }
Property Value
Type Description
System.String

Methods

CreateBlob(Uri, String)

Declaration
public override Blob CreateBlob(Uri id, string extension)
Parameters
Type Name Description
System.Uri id
System.String extension
Returns
Type Description
Blob
Overrides

Delete(Uri)

Delete a blob

Declaration
public override void Delete(Uri id)
Parameters
Type Name Description
System.Uri id

The identifier

Overrides

GetBlob(Uri)

Get a reference to a blob

Declaration
public override Blob GetBlob(Uri id)
Parameters
Type Name Description
System.Uri id

The identifier

Returns
Type Description
Blob

A reference to a blob

Overrides

Initialize(String, NameValueCollection)

Initialize the FileBlobProvider

Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type Name Description
System.String name

Name of the provider

System.Collections.Specialized.NameValueCollection config

provider settings