mirror of https://github.com/abpframework/abp.git
13 changed files with 73 additions and 86 deletions
@ -1,23 +0,0 @@ |
|||
using Microsoft.Extensions.Configuration; |
|||
|
|||
namespace Volo.Abp.Configuration |
|||
{ |
|||
public class DefaultConfigurationAccessor : IConfigurationAccessor |
|||
{ |
|||
public static DefaultConfigurationAccessor Empty { get; } |
|||
|
|||
public virtual IConfigurationRoot Configuration { get; } |
|||
|
|||
static DefaultConfigurationAccessor() |
|||
{ |
|||
Empty = new DefaultConfigurationAccessor( |
|||
new ConfigurationBuilder().Build() |
|||
); |
|||
} |
|||
|
|||
public DefaultConfigurationAccessor(IConfigurationRoot configuration) |
|||
{ |
|||
Configuration = configuration; |
|||
} |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
using System; |
|||
using Microsoft.Extensions.Configuration; |
|||
|
|||
namespace Volo.Abp.Configuration |
|||
{ |
|||
[Obsolete("IConfigurationAccessor will be removed in v1.0. Use IConfiguration instead (be use that you are using generic host just like the startup templates).")] |
|||
public interface IConfigurationAccessor |
|||
{ |
|||
IConfigurationRoot Configuration { get; } |
|||
} |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
{ |
|||
"AppSettingKey1": "AppSettingValue1" |
|||
} |
|||
Loading…
Reference in new issue