TemplateLoaderFactory

Namespace: Proffer.Templating.Internal

Creates ITemplateLoader from Proffer.Storage.IStore.

public class TemplateLoaderFactory : Proffer.Templating.ITemplateLoaderFactory

Inheritance ObjectTemplateLoaderFactory
Implements ITemplateLoaderFactory

Constructors

TemplateLoaderFactory(IEnumerable<ITemplateProvider>, IMemoryCache)

Initializes a new instance of the TemplateLoaderFactory class.

public TemplateLoaderFactory(IEnumerable<ITemplateProvider> providers, IMemoryCache memoryCache)

Parameters

providers IEnumerable<ITemplateProvider>
The providers.

memoryCache IMemoryCache
The memory cache.

Methods

Create(IStore)

Creates a template loader from the specified store.

public ITemplateLoader Create(IStore store)

Parameters

store IStore
The store.

Returns

ITemplateLoader

        A  that loads templates from the given .

Create(IStore, String)

Creates a template loader from the specified store with the specified cache scope.

public ITemplateLoader Create(IStore store, string scope)

Parameters

store IStore
The store.

scope String
The scope.

Returns

ITemplateLoader

        A  that loads templates from the given .