November Happy Hour will be moved to Thursday December 5th.

Class BlobOptions

Specifies how the blob system should be setup

Inheritance
System.Object
BlobOptions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Framework.Blobs
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
[Options]
public class BlobOptions

Constructors

BlobOptions()

Declaration
public BlobOptions()

Properties

BufferedMediaTypes

Comma-separated definition of media types that should be completely buffered before sending.

Declaration
public string BufferedMediaTypes { get; set; }
Property Value
Type Description
System.String
Remarks

Default values are "text/html"

DefaultProvider

The name of the default BlobProvider. This provider will be used if no specific provider has been specified.

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

Providers

List of providers that should be used by the system; each represented by a BlobProviderBuilder instance.

Declaration
public IDictionary<string, BlobProviderBuilder> Providers { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, BlobProviderBuilder>

Methods

AddProvider<TProvider>(String)

Adds a BlobProvider of the given type.

Declaration
public BlobOptions AddProvider<TProvider>(string name)
    where TProvider : BlobProvider
Parameters
Type Name Description
System.String name

The name of the provider to add.

Returns
Type Description
BlobOptions
Type Parameters
Name Description
TProvider

The type of provider to add.

AddProvider<TProvider, TProviderOptions>(String, Action<TProviderOptions>)

Adds a BlobProvider of the given type using the provided method to configure the provider options.

Declaration
public BlobOptions AddProvider<TProvider, TProviderOptions>(string name, Action<TProviderOptions> configure)
    where TProvider : BlobProvider where TProviderOptions : class, new()
Parameters
Type Name Description
System.String name

The name of the provider to add.

System.Action<TProviderOptions> configure

Configuration method for setting up provider options.

Returns
Type Description
BlobOptions
Type Parameters
Name Description
TProvider

The type of BlobProvider to add.

TProviderOptions

The type of the options class expected by the specific provider type.

Extension Methods