EasilyNET.WebCore 4.25.731.155

dotnet add package EasilyNET.WebCore --version 4.25.731.155
                    
NuGet\Install-Package EasilyNET.WebCore -Version 4.25.731.155
                    
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="EasilyNET.WebCore" Version="4.25.731.155" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EasilyNET.WebCore" Version="4.25.731.155" />
                    
Directory.Packages.props
<PackageReference Include="EasilyNET.WebCore" />
                    
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 EasilyNET.WebCore --version 4.25.731.155
                    
#r "nuget: EasilyNET.WebCore, 4.25.731.155"
                    
#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 EasilyNET.WebCore@4.25.731.155
                    
#: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=EasilyNET.WebCore&version=4.25.731.155
                    
Install as a Cake Addin
#tool nuget:?package=EasilyNET.WebCore&version=4.25.731.155
                    
Install as a Cake Tool

EasilyNET.WebCore

一些.Net 6+ 的 WebApi 一些中间件以及部分数据类型到 Json 的转换

Changelog

  • 新增 BusinessExceptionHandler 用于适应.NET8 新增的全局异常处理
  • 移除 ResultObject.cs 因为这种统一返回格式属于特殊的要求,正常的 HTTP 请求应该直接返回数据,而请求是否成功以及产生的异常应该由 HTTP 状态码反应.
  • 同时将涉及到该类的 Filter 和中间件移动到 Api 例子中.

EasilyNET.WebCore JsonConverter 使用?

  • 该库目前补充的 Converter 有: DateTimeConverter, DateTimeNullConverter, TimeSpanJsonConverter, TimeOnly, DateOnly

  • 其中 TimeOnly 和 DateOnly 仅支持.Net6+ API 内部使用,传入和传出 Json 仅支持固定格式字符串

  • 如: DateOnly👉"2021-11-11", TimeOnly👉"23:59:25"

  • 使用 Nuget 安装 EasilyNET.WebCore

  • 然后在上述 Program.cs 中添加如下内容

  • .Net 6 +

// Add services to the container.
builder.Services.AddControllers().AddJsonOptions(c =>
{
    c.JsonSerializerOptions.Converters.Add(new SystemTextJsonConvert.DateTimeConverter());
    c.JsonSerializerOptions.Converters.Add(new SystemTextJsonConvert.DateTimeNullConverter());
});

EasilyNET.WebCore 中间件使用?

目前支持全局 API 执行时间中间件

  • 新增限流中间件(防抖),用于避免短时间内,重复请求

  • 使用 Nuget 安装 # EasilyNET.WebCore

  • 然后在 Program.cs 中添加如下内容

  • .Net 6 +

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment()) app.UseDeveloperExceptionPage();

app.UseResponseTime(); // 全局Action执行时间
...
app.Run();
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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 is compatible.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.25.731.155 86 7/31/2025
4.25.724.1 485 7/23/2025
4.25.720.80 184 7/20/2025
4.25.716.42 131 7/15/2025
4.25.617.153 140 6/17/2025
4.25.616.190 135 6/16/2025
4.25.616.182 129 6/16/2025
4.25.613.111 273 6/13/2025
4.25.609.190 252 6/9/2025
3.24.1125.181 112 11/25/2024
3.24.1125.104 115 11/25/2024
3.24.1121.183 112 11/21/2024
3.24.1120.183 114 11/20/2024
3.24.1119.31 114 11/18/2024
3.24.1115.143 112 11/15/2024
3.24.1113.100 127 11/13/2024
3.24.1112.125 119 11/12/2024
3.24.1107.140 117 11/7/2024
3.24.1107.54 114 11/7/2024
3.24.1107.34 114 11/7/2024
3.24.1105.111 121 11/5/2024
3.24.1103.31 130 11/2/2024
3.24.1103 138 11/2/2024
3.24.1031.135 131 10/31/2024
3.24.1031.112 123 10/31/2024
3.24.1031.104 122 10/31/2024
3.24.1029.142 134 10/29/2024
3.24.1025.30 129 10/24/2024
3.24.1022.142 119 10/22/2024
3.24.1018.204 182 10/18/2024
3.24.1018.175 169 10/18/2024
3.24.1018.166 162 10/18/2024
3.24.1018.93 186 10/18/2024
3.24.1017.42 127 10/16/2024
3.24.1016.161 125 10/16/2024
3.24.1015.231 124 10/15/2024
3.24.1015.14 139 10/14/2024
3.24.1012.114 131 10/12/2024
3.24.1009.115 128 10/9/2024
3.24.1008.160 123 10/8/2024
3.24.1008.133 124 10/8/2024
3.24.1007.185 130 10/7/2024
3.24.1003.33 136 10/2/2024
3.24.1002.162 127 10/2/2024
3.24.929.143 129 9/29/2024
3.24.929.141 137 9/29/2024
3.24.929.131 119 9/29/2024
3.24.929.122 128 9/29/2024
3.24.926.184 139 9/26/2024
3.24.926.182 126 9/26/2024
3.24.926.175 138 9/26/2024
3.24.924.160 126 9/24/2024
3.24.924.133 142 9/24/2024
3.24.924.124 131 9/24/2024
3.24.924.10 127 9/23/2024
3.24.924.1 129 9/23/2024
3.24.923.234 137 9/23/2024
3.24.923.232 124 9/23/2024
3.24.923.155 130 9/23/2024
3.24.919.92 136 9/19/2024
3.24.914.125 124 9/14/2024
3.24.914.115 130 9/14/2024
3.24.914.111 129 9/14/2024
3.24.911.95 154 9/11/2024
3.24.908.215 137 9/8/2024
3.24.904.200 140 9/4/2024
3.24.828.163 138 8/28/2024
3.24.820.173 141 8/20/2024
3.24.814.92 150 8/14/2024
3.24.812.115 162 8/12/2024
3.24.802.100 136 8/2/2024
3.24.801.162 129 8/1/2024
3.24.801.160 131 8/1/2024
3.24.730.164 112 7/30/2024
3.24.730.91 126 7/30/2024
3.24.724.91 126 7/24/2024
3.24.718.105 152 7/18/2024
3.24.716.95 136 7/16/2024
3.24.712.94 138 7/12/2024
3.24.710.14 149 7/9/2024
3.24.709.105 166 7/9/2024
3.24.704.94 154 7/4/2024
3.24.701.90 153 7/1/2024
3.24.628.114 174 6/28/2024
3.24.627.145 144 6/27/2024
3.24.620.160 153 6/20/2024
3.24.613.115 142 6/13/2024
3.24.612.95 141 6/12/2024
3.24.528.90 137 5/28/2024
3.24.522.84 155 5/22/2024
3.24.512.213 132 5/12/2024
3.24.508.112 161 5/8/2024
2.2024.428.71 153 4/28/2024
2.2024.427.1128 142 4/27/2024
2.2.72 157 4/14/2024
2.2.71 144 4/12/2024
2.2.8 150 4/26/2024
2.2.6 149 4/10/2024
2.2.5 173 3/26/2024
2.2.4 156 3/25/2024
2.2.3 157 3/24/2024
2.2.2 184 3/21/2024
2.2.1 174 3/20/2024
2.2.0 162 3/13/2024
2.1.9 181 2/21/2024
2.1.8 163 2/18/2024
2.1.7 151 2/16/2024
2.1.6 167 2/14/2024
2.1.5 144 2/14/2024
2.1.4 207 2/9/2024
2.1.3 196 2/8/2024
2.1.2 187 2/5/2024
2.1.1.2 267 12/26/2023
2.1.1.1 167 12/26/2023
2.1.1 202 12/25/2023
2.1.0 210 12/17/2023
2.0.11 255 12/6/2023
2.0.1 240 11/15/2023
2.0.0 175 11/14/2023
1.9.1 185 11/1/2023
1.9.0 187 10/19/2023
1.9.0-preview2 380 10/12/2023
1.9.0-preview1 155 10/12/2023
1.8.9 246 10/11/2023
1.8.8 200 10/11/2023
1.8.7-rc2 162 9/21/2023
1.8.7-rc1 174 9/12/2023
1.8.6 236 8/31/2023
1.8.5 918 8/25/2023
1.8.4 237 8/24/2023
1.8.3 226 8/23/2023
1.8.2 293 8/22/2023
1.8.1 254 8/18/2023
1.8.0 256 8/15/2023
1.7.9 272 8/11/2023
1.7.8 203 8/11/2023
1.7.7 244 8/10/2023
1.7.6 251 8/9/2023
1.7.5 282 8/9/2023
1.7.4 340 8/3/2023
1.7.3 250 8/1/2023
1.7.2 223 7/31/2023
1.7.1 222 7/27/2023
1.7.0 236 7/25/2023
1.6.9 249 7/25/2023
1.6.8 244 7/24/2023
1.6.7 259 7/20/2023
1.6.6 246 7/19/2023
1.6.5 238 7/19/2023
1.6.4 246 7/17/2023
1.6.3 206 7/17/2023
1.6.2 306 7/12/2023
1.6.1 298 6/30/2023
1.6.0 213 6/26/2023
1.5.9 241 6/22/2023
1.5.8 267 6/15/2023
1.5.7.1 251 6/14/2023
1.5.7 253 6/14/2023
1.5.6.2 301 6/7/2023
1.5.6.1 257 6/7/2023
1.5.6 242 6/7/2023
1.5.5.2 285 5/26/2023
1.5.5.1 272 5/26/2023
1.5.5 262 5/26/2023
1.5.4.4 239 5/25/2023
1.5.4.3 275 5/23/2023
1.5.4.2 359 5/17/2023
1.5.4.1 254 5/16/2023
1.5.4 343 5/11/2023
1.5.3 247 5/11/2023
1.5.2 268 5/10/2023
1.5.1 267 5/10/2023
1.5.0 317 5/6/2023
1.4.0 280 5/5/2023
1.3.9 332 4/23/2023
1.3.8.6 238 4/23/2023
1.3.8.5 241 4/21/2023
1.3.8.1 313 4/12/2023
1.3.8 247 4/11/2023
1.3.7 270 4/9/2023
1.3.6.3 352 4/1/2023
1.3.6.2 277 3/31/2023
1.3.6.1 279 3/31/2023
1.3.6 228 3/31/2023
1.3.5 243 3/30/2023
1.3.4.1 327 3/29/2023
1.3.4 272 3/28/2023
1.3.3 249 3/28/2023
1.3.2 279 3/26/2023
1.3.1 347 3/22/2023
1.3.0 280 3/21/2023
1.2.0 281 3/21/2023
1.1.0 287 3/17/2023
1.0.9 298 3/15/2023
1.0.8 299 3/15/2023
1.0.7 275 3/15/2023
1.0.6 287 3/13/2023
1.0.5 293 3/13/2023
1.0.4 268 3/13/2023
1.0.1 382 2/23/2023
1.0.0 312 2/20/2023