Releases: vipwan/Biwen.Settings
Releases · vipwan/Biwen.Settings
2.2.6.2 released
fix ValidDtoFilter
Full Changelog: 2.2.6...2.2.6.2
2.2.5 released
- 实现
IOptions<T>
的ValidateOptionsResult
配置验证 JsonStore
方式持久化配置项,提供文件监听,如果通过编辑Json文件的方式修改配置,系统将主动刷新缓存并加载配置项ICacheProvider
提供RemoveAllAsync
用于释放所有缓存中的配置项
Full Changelog: 2.2.0...2.2.5
2.2.4 released
提供IConfiguration
和 IOptions
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
- 提供Garnet缓存支持 #13
- ICacheProvider重写为异步
- AuthAttribute 重命名为 SettingAuthorizeAttribute
- fix typos
2.0.3 released
- nuget update
- rename HasPermission to PermissionValidator
2.0.2 released
- Biwen.Settings.OC upgrade to OrchardCore 1.8.0
- SettingController Edit action Add redirectUrl for custom
2.0.1 released
ValidationSettingBase<T>
同时支持FluentValidation
和DataAnnotations
2.0.0 released
Support NET8