EasilyNET.WebCore 4.25.1013.153

There is a newer version of this package available.
See the version list below for details.
dotnet add package EasilyNET.WebCore --version 4.25.1013.153
                    
NuGet\Install-Package EasilyNET.WebCore -Version 4.25.1013.153
                    
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.1013.153" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EasilyNET.WebCore" Version="4.25.1013.153" />
                    
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.1013.153
                    
#r "nuget: EasilyNET.WebCore, 4.25.1013.153"
                    
#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.1013.153
                    
#: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.1013.153
                    
Install as a Cake Addin
#tool nuget:?package=EasilyNET.WebCore&version=4.25.1013.153
                    
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.1016.112 161 10/16/2025
4.25.1014.112 161 10/14/2025
4.25.1013.153 163 10/13/2025
4.25.921.71 179 9/20/2025
4.25.919.15 304 9/18/2025
4.25.918.142 293 9/18/2025
4.25.918.115 280 9/18/2025
4.25.918.30 296 9/17/2025
4.25.917.141 300 9/17/2025
4.25.917.134 303 9/17/2025
4.25.911.151 172 9/11/2025
4.25.905.150 152 9/5/2025
4.25.820.100 175 8/20/2025
4.25.814.175 173 8/14/2025
4.25.731.155 152 7/31/2025
4.25.724.1 553 7/23/2025
4.25.720.80 267 7/20/2025
4.25.716.42 171 7/15/2025
4.25.617.153 179 6/17/2025
4.25.616.190 155 6/16/2025
4.25.616.182 168 6/16/2025
4.25.613.111 314 6/13/2025
4.25.609.190 282 6/9/2025
3.24.1125.181 150 11/25/2024
3.24.1125.104 144 11/25/2024
3.24.1121.183 151 11/21/2024
3.24.1120.183 163 11/20/2024
3.24.1119.31 152 11/18/2024
3.24.1115.143 147 11/15/2024
3.24.1113.100 163 11/13/2024
3.24.1112.125 154 11/12/2024
3.24.1107.140 150 11/7/2024
3.24.1107.54 150 11/7/2024
3.24.1107.34 149 11/7/2024
3.24.1105.111 164 11/5/2024
3.24.1103.31 177 11/2/2024
3.24.1103 180 11/2/2024
3.24.1031.135 170 10/31/2024
3.24.1031.112 168 10/31/2024
3.24.1031.104 174 10/31/2024
3.24.1029.142 178 10/29/2024
3.24.1025.30 168 10/24/2024
3.24.1022.142 152 10/22/2024
3.24.1018.204 232 10/18/2024
3.24.1018.175 210 10/18/2024
3.24.1018.166 209 10/18/2024
3.24.1018.93 235 10/18/2024
3.24.1017.42 179 10/16/2024
3.24.1016.161 175 10/16/2024
3.24.1015.231 172 10/15/2024
3.24.1015.14 186 10/14/2024
3.24.1012.114 175 10/12/2024
3.24.1009.115 175 10/9/2024
3.24.1008.160 168 10/8/2024
3.24.1008.133 164 10/8/2024
3.24.1007.185 175 10/7/2024
3.24.1003.33 188 10/2/2024
3.24.1002.162 169 10/2/2024
3.24.929.143 177 9/29/2024
3.24.929.141 180 9/29/2024
3.24.929.131 157 9/29/2024
3.24.929.122 168 9/29/2024
3.24.926.184 181 9/26/2024
3.24.926.182 175 9/26/2024
3.24.926.175 181 9/26/2024
3.24.924.160 172 9/24/2024
3.24.924.133 189 9/24/2024
3.24.924.124 178 9/24/2024
3.24.924.10 169 9/23/2024
3.24.924.1 175 9/23/2024
3.24.923.234 175 9/23/2024
3.24.923.232 170 9/23/2024
3.24.923.155 171 9/23/2024
3.24.919.92 180 9/19/2024
3.24.914.125 173 9/14/2024
3.24.914.115 175 9/14/2024
3.24.914.111 166 9/14/2024
3.24.911.95 205 9/11/2024
3.24.908.215 181 9/8/2024
3.24.904.200 186 9/4/2024
3.24.828.163 179 8/28/2024
3.24.820.173 185 8/20/2024
3.24.814.92 188 8/14/2024
3.24.812.115 205 8/12/2024
3.24.802.100 173 8/2/2024
3.24.801.162 170 8/1/2024
3.24.801.160 176 8/1/2024
3.24.730.164 163 7/30/2024
3.24.730.91 161 7/30/2024
3.24.724.91 169 7/24/2024
3.24.718.105 196 7/18/2024
3.24.716.95 182 7/16/2024
3.24.712.94 183 7/12/2024
3.24.710.14 204 7/9/2024
3.24.709.105 208 7/9/2024
3.24.704.94 195 7/4/2024
3.24.701.90 184 7/1/2024
3.24.628.114 214 6/28/2024
3.24.627.145 187 6/27/2024
3.24.620.160 199 6/20/2024
3.24.613.115 184 6/13/2024
3.24.612.95 183 6/12/2024
3.24.528.90 182 5/28/2024
3.24.522.84 204 5/22/2024
3.24.512.213 181 5/12/2024
3.24.508.112 208 5/8/2024
2.2024.428.71 196 4/28/2024
2.2024.427.1128 178 4/27/2024
2.2.72 200 4/14/2024
2.2.71 192 4/12/2024
2.2.8 196 4/26/2024
2.2.6 183 4/10/2024
2.2.5 205 3/26/2024
2.2.4 208 3/25/2024
2.2.3 201 3/24/2024
2.2.2 222 3/21/2024
2.2.1 218 3/20/2024
2.2.0 207 3/13/2024
2.1.9 218 2/21/2024
2.1.8 207 2/18/2024
2.1.7 187 2/16/2024
2.1.6 216 2/14/2024
2.1.5 190 2/14/2024
2.1.4 257 2/9/2024
2.1.3 234 2/8/2024
2.1.2 233 2/5/2024
2.1.1.2 311 12/26/2023
2.1.1.1 215 12/26/2023
2.1.1 251 12/25/2023
2.1.0 251 12/17/2023
2.0.11 298 12/6/2023
2.0.1 276 11/15/2023
2.0.0 208 11/14/2023
1.9.1 218 11/1/2023
1.9.0 221 10/19/2023
1.9.0-preview2 423 10/12/2023
1.9.0-preview1 187 10/12/2023
1.8.9 285 10/11/2023
1.8.8 231 10/11/2023
1.8.7-rc2 205 9/21/2023
1.8.7-rc1 194 9/12/2023
1.8.6 287 8/31/2023
1.8.5 971 8/25/2023
1.8.4 289 8/24/2023
1.8.3 272 8/23/2023
1.8.2 347 8/22/2023
1.8.1 305 8/18/2023
1.8.0 301 8/15/2023
1.7.9 326 8/11/2023
1.7.8 242 8/11/2023
1.7.7 295 8/10/2023
1.7.6 293 8/9/2023
1.7.5 328 8/9/2023
1.7.4 391 8/3/2023
1.7.3 286 8/1/2023
1.7.2 276 7/31/2023
1.7.1 274 7/27/2023
1.7.0 292 7/25/2023
1.6.9 290 7/25/2023
1.6.8 291 7/24/2023
1.6.7 302 7/20/2023
1.6.6 289 7/19/2023
1.6.5 286 7/19/2023
1.6.4 293 7/17/2023
1.6.3 258 7/17/2023
1.6.2 348 7/12/2023
1.6.1 350 6/30/2023
1.6.0 267 6/26/2023
1.5.9 298 6/22/2023
1.5.8 311 6/15/2023
1.5.7.1 303 6/14/2023
1.5.7 314 6/14/2023
1.5.6.2 360 6/7/2023
1.5.6.1 315 6/7/2023
1.5.6 300 6/7/2023
1.5.5.2 329 5/26/2023
1.5.5.1 322 5/26/2023
1.5.5 314 5/26/2023
1.5.4.4 292 5/25/2023
1.5.4.3 335 5/23/2023
1.5.4.2 419 5/17/2023
1.5.4.1 301 5/16/2023
1.5.4 405 5/11/2023
1.5.3 308 5/11/2023
1.5.2 318 5/10/2023
1.5.1 313 5/10/2023
1.5.0 377 5/6/2023
1.4.0 335 5/5/2023
1.3.9 384 4/23/2023
1.3.8.6 290 4/23/2023
1.3.8.5 292 4/21/2023
1.3.8.1 362 4/12/2023
1.3.8 295 4/11/2023
1.3.7 318 4/9/2023
1.3.6.3 402 4/1/2023
1.3.6.2 325 3/31/2023
1.3.6.1 320 3/31/2023
1.3.6 271 3/31/2023
1.3.5 281 3/30/2023
1.3.4.1 378 3/29/2023
1.3.4 321 3/28/2023
1.3.3 302 3/28/2023
1.3.2 331 3/26/2023
1.3.1 399 3/22/2023
1.3.0 332 3/21/2023
1.2.0 329 3/21/2023
1.1.0 332 3/17/2023
1.0.9 348 3/15/2023
1.0.8 351 3/15/2023
1.0.7 317 3/15/2023
1.0.6 337 3/13/2023
1.0.5 343 3/13/2023
1.0.4 317 3/13/2023
1.0.1 432 2/23/2023
1.0.0 354 2/20/2023