Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Interface IBlobProviderRegistry

An registry where BlobProvider can be registered, retrieved and removed.

Namespace: EPiServer.Framework.Blobs
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public interface IBlobProviderRegistry

Properties

DefaultProvider

Gets or sets the name of the default BlobProvider.

Declaration
string DefaultProvider { get; set; }
Property Value
Type Description
System.String

Methods

AddProvider(BlobProvider)

Adds a BlobProvider to the registry

Declaration
void AddProvider(BlobProvider provider)
Parameters
Type Name Description
BlobProvider provider

The provider to register

GetProvider(Uri)

Get the provider from the registry that matches the provided blob authority

Declaration
BlobProvider GetProvider(Uri id)
Parameters
Type Name Description
System.Uri id

A blob identifier

Returns
Type Description
BlobProvider

A blob provider

RemoveProvider(String)

Remove a a BlobProvider from the registry.

Declaration
bool RemoveProvider(string name)
Parameters
Type Name Description
System.String name

The name of the provider (also used as authority in blob ID)

Returns
Type Description
System.Boolean

Returns true if the provider was found and removed

Remarks

Provider names are not case sensitive

Extension Methods