Class StaticTemplateDefinitionStore
Inheritance
object
StaticTemplateDefinitionStore
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.TextTemplating.Core.dll
Syntax
public class StaticTemplateDefinitionStore : IStaticTemplateDefinitionStore, ISingletonDependency
Constructors
StaticTemplateDefinitionStore(IOptions<AbpTextTemplatingOptions>, IServiceProvider)
Declaration
public StaticTemplateDefinitionStore(IOptions<AbpTextTemplatingOptions> options, IServiceProvider serviceProvider)
Parameters
Type |
Name |
Description |
Microsoft.Extensions.Options.IOptions<TOptions><AbpTextTemplatingOptions> |
options |
|
System.IServiceProvider |
serviceProvider |
|
Properties
Options
Declaration
protected AbpTextTemplatingOptions Options { get; }
Property Value
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; }
Property Value
Type |
Description |
System.IServiceProvider |
|
TemplateDefinitions
Declaration
protected Lazy<IDictionary<string, TemplateDefinition>> TemplateDefinitions { get; }
Property Value
Type |
Description |
System.Lazy<T><System.Collections.Generic.IDictionary<TKey, TValue><string, TemplateDefinition>> |
|
Methods
CreateTextTemplateDefinitions()
Declaration
protected virtual IDictionary<string, TemplateDefinition> CreateTextTemplateDefinitions()
Returns
Type |
Description |
System.Collections.Generic.IDictionary<TKey, TValue><string, TemplateDefinition> |
|
GetAllAsync()
Declaration
public virtual Task<IReadOnlyList<TemplateDefinition>> GetAllAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IReadOnlyList<T><TemplateDefinition>> |
|
GetAsync(string)
Declaration
public virtual Task<TemplateDefinition> GetAsync(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetOrNullAsync(string)
Declaration
public virtual Task<TemplateDefinition> GetOrNullAsync(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Implements
Extension Methods