RuoVea.ExFilter 7.0.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package RuoVea.ExFilter --version 7.0.1.1
                    
NuGet\Install-Package RuoVea.ExFilter -Version 7.0.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RuoVea.ExFilter" Version="7.0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RuoVea.ExFilter" Version="7.0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="RuoVea.ExFilter" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RuoVea.ExFilter --version 7.0.1.1
                    
#r "nuget: RuoVea.ExFilter, 7.0.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RuoVea.ExFilter@7.0.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RuoVea.ExFilter&version=7.0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=RuoVea.ExFilter&version=7.0.1.1
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (12)

Showing the top 5 NuGet packages that depend on RuoVea.ExFilter:

Package Downloads
RuoVea.OmiDict

字典管理

RuoVea.OmiApi.UserRoleMenu

用户、角色、菜单管理 API

RuoVea.OmiConfig

参数配置

RuoVea.OmiApi.SystemApp

用户、角色、菜单、机构、职位、权限管理 API

RuoVea.OmiApi.UserRole

用户角色管理 API

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0.1 321 9/16/2025
9.0.0.2 178 10/23/2025
9.0.0 495 7/25/2025
8.0.1.7 2,193 10/23/2025
8.0.1.6 975 9/16/2025
8.0.1.5 2,077 4/23/2025
8.0.1.4 1,248 11/21/2024
8.0.1.3 213 11/1/2024
8.0.1.2 188 9/22/2024
8.0.1.1 204 9/18/2024
8.0.1 192 8/28/2024
8.0.0 168 7/23/2024
7.0.1.7 2,555 10/23/2025
7.0.1.6 1,148 9/16/2025
7.0.1.5 2,397 4/23/2025
7.0.1.4 1,444 11/21/2024
7.0.1.3 177 11/1/2024
7.0.1.2 196 9/22/2024
7.0.1.1 188 9/18/2024
7.0.1 179 8/28/2024
7.0.0 167 7/23/2024
6.0.19.7 3,157 10/23/2025
6.0.19.6 1,365 9/16/2025
6.0.19.5 2,896 4/23/2025
6.0.19.4 4,439 11/21/2024
6.0.19.3 1,645 11/1/2024
6.0.19.2 2,018 9/22/2024
6.0.19.1 217 9/18/2024
6.0.19 183 8/28/2024
6.0.18.13 241 8/25/2024
6.0.18.12 236 4/15/2024
6.0.18.11 226 4/14/2024
6.0.18.10 249 3/13/2024
6.0.18.9 267 3/13/2024
6.0.18.8 255 3/11/2024
6.0.18.7 312 2/28/2024
6.0.18.6 267 2/27/2024
6.0.18.5 342 1/29/2024
6.0.18.4 345 1/27/2024
6.0.18.3 312 1/26/2024
6.0.18.2 455 12/28/2023
6.0.18.1 359 12/1/2023
6.0.18 389 9/27/2023
6.0.17 372 9/16/2023
6.0.16 528 3/26/2023
6.0.15 519 3/26/2023
6.0.13 539 3/11/2023
6.0.12 591 12/23/2022
6.0.11 527 12/23/2022
6.0.10 671 10/8/2022
6.0.9 749 9/16/2022
6.0.8 714 8/18/2022
6.0.7 733 6/10/2022
6.0.6 789 3/15/2022
6.0.5 773 3/14/2022
6.0.4 758 2/18/2022
6.0.3 705 2/18/2022
6.0.2 748 2/17/2022
6.0.1 778 2/15/2022
6.0.0 786 2/11/2022
5.0.0.6 166 10/23/2025
5.0.0.5 321 9/16/2025
5.0.0.4 225 4/23/2025
5.0.0.3 192 11/21/2024
5.0.0.2 223 11/1/2024
5.0.0.1 187 9/22/2024
5.0.0 188 9/18/2024