Skip to content

Releases: vipwan/Biwen.Settings

2.5.2 released

09 Jan 09:10
Compare
Choose a tag to compare

2.5.1 released

31 Dec 06:16
Compare
Choose a tag to compare

Full Changelog: 2.5.0...2.5.1

2.5.0

22 Dec 09:55
Compare
Choose a tag to compare

Full Changelog: 2.4.1...2.5.0

2.4.1 released

18 Dec 06:54
Compare
Choose a tag to compare

Full Changelog: 2.4.0...2.4.1

2.4.0 released

12 Dec 06:35
Compare
Choose a tag to compare
  • UseStoreOfEFCore<TDBContext>()
  • fix typos
    Full Changelog: 2.3.0...2.4.0

2.3.0 released

29 Nov 07:37
Compare
Choose a tag to compare
  • add NET9 support
  • nuget update

Full Changelog: 2.2.6.2...2.3.0

2.2.6.2 released

23 Jul 14:09
Compare
Choose a tag to compare

fix ValidDtoFilter

Full Changelog: 2.2.6...2.2.6.2

2.2.5 released

10 Jun 18:12
Compare
Choose a tag to compare
  1. 实现IOptions<T>ValidateOptionsResult 配置验证
  2. JsonStore 方式持久化配置项,提供文件监听,如果通过编辑Json文件的方式修改配置,系统将主动刷新缓存并加载配置项
  3. ICacheProvider 提供 RemoveAllAsync 用于释放所有缓存中的配置项

Full Changelog: 2.2.0...2.2.5

2.2.4 released

16 May 17:37
Compare
Choose a tag to compare

提供IConfigurationIOptions IOptionsSnapshot的直接支持

builder.Services.AddBiwenSettings(options);
//提供对IConfiguration,IOptions的支持
builder.Configuration.AddBiwenSettingConfiguration(builder.Services,true);
@inject SiteSetting SiteSetting;
@inject WeChatSetting WeChatSetting;//直接对象注入
@inject IOptions<WeChatSetting> IOP; //通过IOptions注入初始化后不会改变
@inject IOptionsSnapshot<WeChatSetting> IOPSnapshot; //通过IOptionsSnapshot注入,更新配置后会改变
@inject IConfiguration Configuration;//IConfiguration

<p>Configuration中WeChatSetting读取配置测试</p>
@foreach (var cfg in Configuration.AsEnumerable().OrderBy(x => x.Key))
{
    if (cfg.Key.StartsWith("WeChatSetting:"))
    {
        <p>@cfg.Key  :  @cfg.Value </p>
    }
}
<hr />
<div>
    <p>WeChatSetting IOptions方式:</p>
    @{
        var props = IOP.Value.GetType().GetProperties();
    }
    @foreach (var prop in props.Where(x => x.CanWrite && x.CanRead))
    {
        <p>@prop.Name : @prop.GetValue(WeChatSetting)</p>
    }
</div>
<hr />
<div>
    <p>WeChatSetting 直接注入的方式:</p>
    @{
        var props2 = WeChatSetting.GetType().GetProperties();
    }
    @foreach (var prop in props2.Where(x => x.CanWrite && x.CanRead))
    {
        <p>@prop.Name : @prop.GetValue(WeChatSetting)</p>
    }
</div>

2.1.1 released

01 Apr 08:42
Compare
Choose a tag to compare
  1. 提供Garnet缓存支持 #13
  2. ICacheProvider重写为异步
  3. AuthAttribute 重命名为 SettingAuthorizeAttribute
  4. fix typos