Skip to content

Releases: vipwan/Biwen.Settings

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

2.0.3 released

05 Mar 06:35
Compare
Choose a tag to compare
  • nuget update
  • rename HasPermission to PermissionValidator

2.0.2 released

05 Jan 06:53
Compare
Choose a tag to compare
  • Biwen.Settings.OC upgrade to OrchardCore 1.8.0
  • SettingController Edit action Add redirectUrl for custom

2.0.1 released

28 Dec 09:27
Compare
Choose a tag to compare

ValidationSettingBase<T>同时支持FluentValidationDataAnnotations

2.0.0 released

23 Nov 16:52
Compare
Choose a tag to compare

Support NET8

2.0.0-preview1

25 Sep 10:36
Compare
Choose a tag to compare

1.4.2-preview

19 Sep 15:32
Compare
Choose a tag to compare

Minimal API 提供Patch部分更新支持

image