RuoVea.ExFilter
6.0.19.3
See the version list below for details.
dotnet add package RuoVea.ExFilter --version 6.0.19.3
NuGet\Install-Package RuoVea.ExFilter -Version 6.0.19.3
<PackageReference Include="RuoVea.ExFilter" Version="6.0.19.3" />
paket add RuoVea.ExFilter --version 6.0.19.3
#r "nuget: RuoVea.ExFilter, 6.0.19.3"
// Install RuoVea.ExFilter as a Cake Addin #addin nuget:?package=RuoVea.ExFilter&version=6.0.19.3 // Install RuoVea.ExFilter as a Cake Tool #tool nuget:?package=RuoVea.ExFilter&version=6.0.19.3
RuoVea.ExFilter
介绍
注入 进行全局的异常日志收集、执行操作日志、参数验证、对资源型信息进行过滤、对结果进行统一、接口安全校验、签名验证 MD5 ( appKey + signKey + timeStamp + data );支持简体中文、繁体中文、粤语、日语、法语、英语.
使用示例
注入 进行全局的异常日志收集、执行操作日志、参数验证
builder.Services.ExceptionSetup();// 注入 全局错误日志
builder.Services.ExceptionSetup(ExceptionLog actionOptions);// 注入 全局错误日志
builder.Services.ExceptionSetup(builder.Configuration.GetSection("AopOption:ExceptionLog"));// 注入 全局错误日志
builder.Services.RequestActionSetup();// 注入 请求日志拦截 [执行操作日志、参数验证 ]
builder.Services.RequestActionSetup(RequestLog actionOptions);// 注入 请求日志拦截 [执行操作日志、参数验证 ]
builder.Services.RequestActionSetup(builder.Configuration.GetSection("AopOption:RequestLog"));// 注入 请求日志拦截 [执行操作日志、参数验证 ]
builder.Services.ResourceSetup();//对资源型信息进行过滤
builder.Services.ResultSetup();//对结果进行统一
builder.Services.ApISafeSetup(AppSign actionOptions);//接口安全校验
builder.Services.ApISafeSetup(builder.Configuration.GetSection("AopOption:AppSign"));//接口安全校验
builder.Services.ApISignSetup(AppSign actionOptions);//签名验证 ( appKey + signKey + timeStamp + data );
builder.Services.ApISignSetup(builder.Configuration.GetSection("AopOption:AppSign"));//签名验证 ( appKey + signKey + timeStamp + data );
builder.Services.AddUiFilesZipSetup();//将前端UI压缩文件进行解压
app.UseVirtualPathMiddle();//虚拟路径
前端
"appKey": appKey,
"timeStamp": (Math.floor(Date.now() / 1000) + 1000),
继承重写IRestfulFilterLog 方法
Non**特性相关
不进行接口安全校验 → NonAplSafeAttribute
不签名验证 → NonAplSignAttribute
不进行全局的异常日志收集 → NonExceptionAttribute
不对资源型信息进行过滤 → NonResourceAttribute
不对结果进行统一 → NonRestfulResultAttribute
相关配置文件
/* 全局的异常日志配置 */
"ExceptionLog": {
"Enabled": true,
"LogToFile": false,
"LogMore": false
},
/* 请求日志拦截配置 */
"RequestLog": {
"Enabled": true,
"LogToFile": false, //记录到文件
"LogMore": false, //记录更多内容 如写入数据库 需继承重写 IRestfulFilterLog
"IgnoreApis": ""
},
/*接口安全校验*/
"ApISafe": {
"AppKeys": "",//多个appKey用逗号分开
"AppKeyName": "appKey",
"TimeStampName": "timeStamp",
"ExpiresMinute": 2, //单位(分钟)
}
/*签名验证*/
"AppSign": {
"AppKeys": "",//多个appKey用逗号分开
"AppKeyName": "appKey",
"TimeStampName": "timeStamp",
"ExpiresMinute": 2, //单位(分钟)
"SignKey": "", //签名key
"SignatureName": "signature", //签名
"IgnoreApi": "" //签名验证忽略api列表
}
/* 整合配置 */
"AopOption": {
"RequestLog": {
"Enabled": true,
"LogToFile": false, //记录到文件
"LogMore": false, //记录更多内容 如写入数据库 需继承重写 IRestfulFilterLog
"IgnoreApis": ""
},
"ExceptionLog": {
"Enabled": true,
"LogToFile": false,
"LogMore": false
},
"AppSign": {
"AppKeys": "",//多个appKey用逗号分开
"AppKeyName": "appKey",
"TimeStampName": "timeStamp",
"ExpiresMinute": 2, //单位(分钟)
"SignKey": "", //签名key
"SignatureName": "signature", //签名
"IgnoreApi": "" //签名验证忽略api列表
}
},
"VirtualPath":""//虚拟路径
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- RuoVea.ExConfig (>= 6.0.1.6)
- RuoVea.ExCrypt (>= 6.0.3.1)
- RuoVea.ExDto (>= 6.0.12.1)
- RuoVea.ExLog (>= 6.0.1.1)
- RuoVea.ExUtil (>= 6.0.14.1)
- System.Security.Cryptography.Pkcs (>= 6.0.4)
- System.Security.Cryptography.Xml (>= 6.0.1)
- System.Text.RegularExpressions (>= 4.3.1)
- UAParser (>= 3.1.47)
NuGet packages (9)
Showing the top 5 NuGet packages that depend on RuoVea.ExFilter:
Package | Downloads |
---|---|
RuoVea.OmiConfig
参数配置 |
|
RuoVea.OmiLog
日志管理 |
|
RuoVea.OmiApi.UserRoleMenu
用户、角色、菜单管理 API |
|
RuoVea.OmiApi.User
用户管理 API |
|
RuoVea.OmiApi.Auth
用户登陆 API |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.1.4 | 92 | 11/21/2024 |
8.0.1.3 | 100 | 11/1/2024 |
8.0.1.2 | 86 | 9/22/2024 |
8.0.1.1 | 97 | 9/18/2024 |
8.0.1 | 100 | 8/28/2024 |
8.0.0 | 79 | 7/23/2024 |
7.0.1.4 | 92 | 11/21/2024 |
7.0.1.3 | 75 | 11/1/2024 |
7.0.1.2 | 98 | 9/22/2024 |
7.0.1.1 | 94 | 9/18/2024 |
7.0.1 | 92 | 8/28/2024 |
7.0.0 | 76 | 7/23/2024 |
6.0.19.4 | 351 | 11/21/2024 |
6.0.19.3 | 921 | 11/1/2024 |
6.0.19.2 | 1,209 | 9/22/2024 |
6.0.19.1 | 110 | 9/18/2024 |
6.0.19 | 94 | 8/28/2024 |
6.0.18.13 | 153 | 8/25/2024 |
6.0.18.12 | 146 | 4/15/2024 |
6.0.18.11 | 139 | 4/14/2024 |
6.0.18.10 | 164 | 3/13/2024 |
6.0.18.9 | 179 | 3/13/2024 |
6.0.18.8 | 167 | 3/11/2024 |
6.0.18.7 | 213 | 2/28/2024 |
6.0.18.6 | 184 | 2/27/2024 |
6.0.18.5 | 255 | 1/29/2024 |
6.0.18.4 | 262 | 1/27/2024 |
6.0.18.3 | 224 | 1/26/2024 |
6.0.18.2 | 338 | 12/28/2023 |
6.0.18.1 | 313 | 12/1/2023 |
6.0.18 | 314 | 9/27/2023 |
6.0.17 | 313 | 9/16/2023 |
6.0.16 | 427 | 3/26/2023 |
6.0.15 | 410 | 3/26/2023 |
6.0.13 | 440 | 3/11/2023 |
6.0.12 | 489 | 12/23/2022 |
6.0.11 | 427 | 12/23/2022 |
6.0.10 | 564 | 10/8/2022 |
6.0.9 | 624 | 9/16/2022 |
6.0.8 | 600 | 8/18/2022 |
6.0.7 | 592 | 6/10/2022 |
6.0.6 | 643 | 3/15/2022 |
6.0.5 | 629 | 3/14/2022 |
6.0.4 | 626 | 2/18/2022 |
6.0.3 | 570 | 2/18/2022 |
6.0.2 | 615 | 2/17/2022 |
6.0.1 | 642 | 2/15/2022 |
6.0.0 | 652 | 2/11/2022 |
5.0.0.3 | 80 | 11/21/2024 |
5.0.0.2 | 82 | 11/1/2024 |
5.0.0.1 | 91 | 9/22/2024 |
5.0.0 | 92 | 9/18/2024 |