ToolNET.WebApi.Filter 6.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ToolNET.WebApi.Filter --version 6.0.0                
NuGet\Install-Package ToolNET.WebApi.Filter -Version 6.0.0                
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="ToolNET.WebApi.Filter" Version="6.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ToolNET.WebApi.Filter --version 6.0.0                
#r "nuget: ToolNET.WebApi.Filter, 6.0.0"                
#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.
// Install ToolNET.WebApi.Filter as a Cake Addin
#addin nuget:?package=ToolNET.WebApi.Filter&version=6.0.0

// Install ToolNET.WebApi.Filter as a Cake Tool
#tool nuget:?package=ToolNET.WebApi.Filter&version=6.0.0                

1.过滤器使用说明

GlobalExceptionFilter 全局异常处理过滤器

LoggerFilter 日志记录过滤器

ModelValidatorFilter 模型参数验证过滤器

// 必须依赖内存服务
builder.Services.AddMemoryCache();
// 添加全局过滤器
builder.Services.AddControllers(options =>
{
    options.AddFilters(); // 方法内部添加了 ModelValidatorFilter/LoggerFilter/GlobalExceptionFilter    
    
    // 下面可以引用其他过滤器
});






Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ToolNET.WebApi.Filter:

Package Downloads
ToolNET.WebApi.SDK

球域相遇--整合资源包 ToolNET.Swagger.Knife4j ToolNET.WebApi.Cors ToolNET.WebApi.Filter ToolNET.WebApi.Jwt ToolNET.WebApi.Middleware ToolNET.WebApi.SDK

ToolNET.Infrastructure.WebFilters

日志过滤器/全局异常过滤器

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
7.1.5 162 10/28/2024
7.1.4 139 10/22/2024
7.1.3 157 10/18/2024
7.1.2 366 8/21/2024
7.1.1 140 8/21/2024
7.1.0 382 6/15/2024
7.0.9 120 6/11/2024
7.0.8 206 4/30/2024
7.0.6 131 4/30/2024
7.0.4 215 2/26/2024
7.0.3 125 2/23/2024
7.0.2 138 2/23/2024
7.0.1 131 2/23/2024
7.0.0 118 1/26/2024
6.0.0 120 6/12/2023
5.0.8 214 4/20/2023
5.0.7 191 4/20/2023
5.0.5 491 9/14/2022
5.0.4 416 9/7/2022
5.0.3 454 8/22/2022
5.0.2 481 6/15/2022
5.0.0 459 4/24/2022