EasilyNET.WebCore 3.24.1025.30

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

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.526.140 57 5/26/2025
4.25.513.101 221 5/13/2025
4.25.506.150 130 5/6/2025
4.25.429.162 137 4/29/2025
4.25.429.103 167 4/29/2025
4.25.411.142 133 4/11/2025
4.25.409.92 150 4/9/2025
4.25.403.133 164 4/3/2025
4.25.319.113 155 3/19/2025
4.25.312.103 159 3/12/2025
4.25.227.135 103 2/27/2025
4.25.221.115 106 2/21/2025
4.25.212.95 101 2/12/2025
4.25.211.140 99 2/11/2025
4.25.124.223 87 1/24/2025
4.25.116.110 87 1/16/2025
4.25.115.121 63 1/15/2025
4.25.114.172 84 1/14/2025
4.25.109.111 91 1/9/2025
4.25.108.182 83 1/8/2025
4.25.108.160 85 1/8/2025
4.25.1.1 112 1/1/2025
3.24.1224.141 95 12/24/2024
3.24.1216.116 116 12/16/2024
3.24.1206.100 108 12/6/2024
3.24.1205.171 109 12/5/2024
3.24.1202.150 108 12/2/2024
3.24.1126.231 101 11/26/2024
3.24.1126.172 104 11/26/2024
3.24.1126.114 101 11/26/2024
3.24.1126.104 108 11/26/2024
3.24.1125.181 96 11/25/2024
3.24.1125.104 105 11/25/2024
3.24.1121.183 101 11/21/2024
3.24.1120.183 99 11/20/2024
3.24.1119.31 103 11/18/2024
3.24.1115.143 96 11/15/2024
3.24.1113.100 111 11/13/2024
3.24.1112.125 105 11/12/2024
3.24.1107.140 105 11/7/2024
3.24.1107.54 104 11/7/2024
3.24.1107.34 102 11/7/2024
3.24.1105.111 108 11/5/2024
3.24.1103.31 116 11/2/2024
3.24.1103 126 11/2/2024
3.24.1031.135 118 10/31/2024
3.24.1031.112 109 10/31/2024
3.24.1031.104 111 10/31/2024
3.24.1029.142 121 10/29/2024
3.24.1025.30 117 10/24/2024
3.24.1022.142 104 10/22/2024
3.24.1018.204 167 10/18/2024
3.24.1018.175 159 10/18/2024
3.24.1018.166 152 10/18/2024
3.24.1018.93 173 10/18/2024
3.24.1017.42 115 10/16/2024
3.24.1016.161 114 10/16/2024
3.24.1015.231 110 10/15/2024
3.24.1015.14 125 10/14/2024
3.24.1012.114 118 10/12/2024
3.24.1009.115 116 10/9/2024
3.24.1008.160 111 10/8/2024
3.24.1008.133 113 10/8/2024
3.24.1007.185 115 10/7/2024
3.24.1003.33 124 10/2/2024
3.24.1002.162 115 10/2/2024
3.24.929.143 117 9/29/2024
3.24.929.141 126 9/29/2024
3.24.929.131 107 9/29/2024
3.24.929.122 115 9/29/2024
3.24.926.184 126 9/26/2024
3.24.926.182 113 9/26/2024
3.24.926.175 125 9/26/2024
3.24.924.160 113 9/24/2024
3.24.924.133 129 9/24/2024
3.24.924.124 117 9/24/2024
3.24.924.10 115 9/23/2024
3.24.924.1 118 9/23/2024
3.24.923.234 122 9/23/2024
3.24.923.232 111 9/23/2024
3.24.923.155 114 9/23/2024
3.24.919.92 125 9/19/2024
3.24.914.125 113 9/14/2024
3.24.914.115 119 9/14/2024
3.24.914.111 119 9/14/2024
3.24.911.95 140 9/11/2024
3.24.908.215 126 9/8/2024
3.24.904.200 127 9/4/2024
3.24.828.163 127 8/28/2024
3.24.820.173 130 8/20/2024
3.24.814.92 139 8/14/2024
3.24.812.115 151 8/12/2024
3.24.802.100 123 8/2/2024
3.24.801.162 117 8/1/2024
3.24.801.160 118 8/1/2024
3.24.730.164 100 7/30/2024
3.24.730.91 113 7/30/2024
3.24.724.91 111 7/24/2024
3.24.718.105 141 7/18/2024
3.24.716.95 121 7/16/2024
3.24.712.94 124 7/12/2024
3.24.710.14 133 7/9/2024
3.24.709.105 154 7/9/2024
3.24.704.94 135 7/4/2024
3.24.701.90 139 7/1/2024
3.24.628.114 163 6/28/2024
3.24.627.145 131 6/27/2024
3.24.620.160 141 6/20/2024
3.24.613.115 131 6/13/2024
3.24.612.95 127 6/12/2024
3.24.528.90 127 5/28/2024
3.24.522.84 140 5/22/2024
3.24.512.213 124 5/12/2024
3.24.508.112 152 5/8/2024
2.2024.428.71 138 4/28/2024
2.2024.427.1128 131 4/27/2024
2.2.72 140 4/14/2024
2.2.71 131 4/12/2024
2.2.8 137 4/26/2024
2.2.6 140 4/10/2024
2.2.5 164 3/26/2024
2.2.4 144 3/25/2024
2.2.3 143 3/24/2024
2.2.2 172 3/21/2024
2.2.1 165 3/20/2024
2.2.0 154 3/13/2024
2.1.9 172 2/21/2024
2.1.8 151 2/18/2024
2.1.7 144 2/16/2024
2.1.6 155 2/14/2024
2.1.5 134 2/14/2024
2.1.4 198 2/9/2024
2.1.3 187 2/8/2024
2.1.2 179 2/5/2024
2.1.1.2 253 12/26/2023
2.1.1.1 157 12/26/2023
2.1.1 193 12/25/2023
2.1.0 199 12/17/2023
2.0.11 243 12/6/2023
2.0.1 234 11/15/2023
2.0.0 167 11/14/2023
1.9.1 175 11/1/2023
1.9.0 172 10/19/2023
1.9.0-preview2 364 10/12/2023
1.9.0-preview1 143 10/12/2023
1.8.9 232 10/11/2023
1.8.8 183 10/11/2023
1.8.7-rc2 146 9/21/2023
1.8.7-rc1 144 9/12/2023
1.8.6 217 8/31/2023
1.8.5 893 8/25/2023
1.8.4 213 8/24/2023
1.8.3 205 8/23/2023
1.8.2 271 8/22/2023
1.8.1 234 8/18/2023
1.8.0 235 8/15/2023
1.7.9 251 8/11/2023
1.7.8 181 8/11/2023
1.7.7 225 8/10/2023
1.7.6 230 8/9/2023
1.7.5 262 8/9/2023
1.7.4 320 8/3/2023
1.7.3 225 8/1/2023
1.7.2 204 7/31/2023
1.7.1 203 7/27/2023
1.7.0 215 7/25/2023
1.6.9 227 7/25/2023
1.6.8 220 7/24/2023
1.6.7 237 7/20/2023
1.6.6 225 7/19/2023
1.6.5 216 7/19/2023
1.6.4 221 7/17/2023
1.6.3 183 7/17/2023
1.6.2 280 7/12/2023
1.6.1 278 6/30/2023
1.6.0 191 6/26/2023
1.5.9 218 6/22/2023
1.5.8 247 6/15/2023
1.5.7.1 228 6/14/2023
1.5.7 232 6/14/2023
1.5.6.2 278 6/7/2023
1.5.6.1 234 6/7/2023
1.5.6 221 6/7/2023
1.5.5.2 262 5/26/2023
1.5.5.1 252 5/26/2023
1.5.5 241 5/26/2023
1.5.4.4 218 5/25/2023
1.5.4.3 253 5/23/2023
1.5.4.2 337 5/17/2023
1.5.4.1 230 5/16/2023
1.5.4 319 5/11/2023
1.5.3 227 5/11/2023
1.5.2 247 5/10/2023
1.5.1 247 5/10/2023
1.5.0 297 5/6/2023
1.4.0 260 5/5/2023
1.3.9 309 4/23/2023
1.3.8.6 218 4/23/2023
1.3.8.5 218 4/21/2023
1.3.8.1 293 4/12/2023
1.3.8 225 4/11/2023
1.3.7 250 4/9/2023
1.3.6.3 330 4/1/2023
1.3.6.2 255 3/31/2023
1.3.6.1 258 3/31/2023
1.3.6 206 3/31/2023
1.3.5 222 3/30/2023
1.3.4.1 302 3/29/2023
1.3.4 248 3/28/2023
1.3.3 226 3/28/2023
1.3.2 256 3/26/2023
1.3.1 321 3/22/2023
1.3.0 259 3/21/2023
1.2.0 256 3/21/2023
1.1.0 268 3/17/2023
1.0.9 276 3/15/2023
1.0.8 274 3/15/2023
1.0.7 251 3/15/2023
1.0.6 265 3/13/2023
1.0.5 272 3/13/2023
1.0.4 247 3/13/2023
1.0.1 358 2/23/2023
1.0.0 279 2/20/2023