Class ConfigurationSettingValueProvider
Inheritance
object
ConfigurationSettingValueProvider
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Settings
Assembly: Volo.Abp.Settings.dll
Syntax
public class ConfigurationSettingValueProvider : ISettingValueProvider, ITransientDependency
Constructors
ConfigurationSettingValueProvider(IConfiguration)
Declaration
public ConfigurationSettingValueProvider(IConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Configuration.IConfiguration | configuration |
Fields
ConfigurationNamePrefix
Declaration
public const string ConfigurationNamePrefix = "Settings:"
Field Value
Type | Description |
---|---|
string |
ProviderName
Declaration
public const string ProviderName = "C"
Field Value
Type | Description |
---|---|
string |
Properties
Configuration
Declaration
protected IConfiguration Configuration { get; }
Property Value
Type | Description |
---|---|
Microsoft.Extensions.Configuration.IConfiguration |
Name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetAllAsync(SettingDefinition[])
Declaration
public Task<List<SettingValue>> GetAllAsync(SettingDefinition[] settings)
Parameters
Type | Name | Description |
---|---|---|
SettingDefinition[] | settings |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.List<T><SettingValue>> |
GetOrNullAsync(SettingDefinition)
Declaration
public virtual Task<string?> GetOrNullAsync(SettingDefinition setting)
Parameters
Type | Name | Description |
---|---|---|
SettingDefinition | setting |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><string> |