EasilyNET.WebCore 4.25.617.153

dotnet add package EasilyNET.WebCore --version 4.25.617.153
                    
NuGet\Install-Package EasilyNET.WebCore -Version 4.25.617.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.617.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.617.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.617.153
                    
#r "nuget: EasilyNET.WebCore, 4.25.617.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.
#addin nuget:?package=EasilyNET.WebCore&version=4.25.617.153
                    
Install as a Cake Addin
#tool nuget:?package=EasilyNET.WebCore&version=4.25.617.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.617.153 132 20 days ago
4.25.616.190 128 21 days ago
4.25.616.182 124 21 days ago
4.25.613.111 267 24 days ago
4.25.609.190 248 a month ago
3.24.1125.181 108 7 months ago
3.24.1125.104 111 7 months ago
3.24.1121.183 108 8 months ago
3.24.1120.183 109 8 months ago
3.24.1119.31 110 8 months ago
3.24.1115.143 108 8 months ago
3.24.1113.100 123 8 months ago
3.24.1112.125 115 8 months ago
3.24.1107.140 113 8 months ago
3.24.1107.54 110 8 months ago
3.24.1107.34 110 8 months ago
3.24.1105.111 117 8 months ago
3.24.1103.31 126 8 months ago
3.24.1103 134 8 months ago
3.24.1031.135 127 8 months ago
3.24.1031.112 117 8 months ago
3.24.1031.104 118 8 months ago
3.24.1029.142 130 8 months ago
3.24.1025.30 125 8 months ago
3.24.1022.142 114 8 months ago
3.24.1018.204 177 9 months ago
3.24.1018.175 166 9 months ago
3.24.1018.166 159 9 months ago
3.24.1018.93 181 9 months ago
3.24.1017.42 123 9 months ago
3.24.1016.161 122 9 months ago
3.24.1015.231 121 9 months ago
3.24.1015.14 135 9 months ago
3.24.1012.114 128 9 months ago
3.24.1009.115 125 9 months ago
3.24.1008.160 120 9 months ago
3.24.1008.133 121 9 months ago
3.24.1007.185 127 9 months ago
3.24.1003.33 133 9 months ago
3.24.1002.162 124 9 months ago
3.24.929.143 127 9 months ago
3.24.929.141 135 9 months ago
3.24.929.131 115 9 months ago
3.24.929.122 125 9 months ago
3.24.926.184 136 9 months ago
3.24.926.182 123 9 months ago
3.24.926.175 135 9 months ago
3.24.924.160 122 9 months ago
3.24.924.133 139 9 months ago
3.24.924.124 128 9 months ago
3.24.924.10 124 9 months ago
3.24.924.1 126 9 months ago
3.24.923.234 133 9 months ago
3.24.923.232 121 9 months ago
3.24.923.155 127 9 months ago
3.24.919.92 133 10 months ago
3.24.914.125 121 10 months ago
3.24.914.115 127 10 months ago
3.24.914.111 126 10 months ago
3.24.911.95 151 10 months ago
3.24.908.215 134 10 months ago
3.24.904.200 137 9/4/2024
3.24.828.163 135 8/28/2024
3.24.820.173 138 8/20/2024
3.24.814.92 146 8/14/2024
3.24.812.115 159 8/12/2024
3.24.802.100 133 8/2/2024
3.24.801.162 125 8/1/2024
3.24.801.160 128 8/1/2024
3.24.730.164 109 7/30/2024
3.24.730.91 123 7/30/2024
3.24.724.91 123 7/24/2024
3.24.718.105 148 7/18/2024
3.24.716.95 133 7/16/2024
3.24.712.94 135 7/12/2024
3.24.710.14 146 7/9/2024
3.24.709.105 163 7/9/2024
3.24.704.94 142 7/4/2024
3.24.701.90 150 7/1/2024
3.24.628.114 171 6/28/2024
3.24.627.145 140 6/27/2024
3.24.620.160 149 6/20/2024
3.24.613.115 139 6/13/2024
3.24.612.95 137 6/12/2024
3.24.528.90 134 5/28/2024
3.24.522.84 151 5/22/2024
3.24.512.213 129 5/12/2024
3.24.508.112 158 5/8/2024
2.2024.428.71 150 4/28/2024
2.2024.427.1128 139 4/27/2024
2.2.72 149 4/14/2024
2.2.71 141 4/12/2024
2.2.8 147 4/26/2024
2.2.6 146 4/10/2024
2.2.5 170 3/26/2024
2.2.4 153 3/25/2024
2.2.3 151 3/24/2024
2.2.2 181 3/21/2024
2.2.1 171 3/20/2024
2.2.0 160 3/13/2024
2.1.9 179 2/21/2024
2.1.8 161 2/18/2024
2.1.7 149 2/16/2024
2.1.6 165 2/14/2024
2.1.5 142 2/14/2024
2.1.4 204 2/9/2024
2.1.3 194 2/8/2024
2.1.2 185 2/5/2024
2.1.1.2 265 12/26/2023
2.1.1.1 165 12/26/2023
2.1.1 200 12/25/2023
2.1.0 208 12/17/2023
2.0.11 251 12/6/2023
2.0.1 237 11/15/2023
2.0.0 170 11/14/2023
1.9.1 181 11/1/2023
1.9.0 182 10/19/2023
1.9.0-preview2 372 10/12/2023
1.9.0-preview1 151 10/12/2023
1.8.9 241 10/11/2023
1.8.8 196 10/11/2023
1.8.7-rc2 158 9/21/2023
1.8.7-rc1 169 9/12/2023
1.8.6 228 8/31/2023
1.8.5 907 8/25/2023
1.8.4 228 8/24/2023
1.8.3 217 8/23/2023
1.8.2 284 8/22/2023
1.8.1 245 8/18/2023
1.8.0 246 8/15/2023
1.7.9 263 8/11/2023
1.7.8 193 8/11/2023
1.7.7 234 8/10/2023
1.7.6 241 8/9/2023
1.7.5 273 8/9/2023
1.7.4 331 8/3/2023
1.7.3 239 8/1/2023
1.7.2 214 7/31/2023
1.7.1 213 7/27/2023
1.7.0 226 7/25/2023
1.6.9 238 7/25/2023
1.6.8 234 7/24/2023
1.6.7 249 7/20/2023
1.6.6 236 7/19/2023
1.6.5 227 7/19/2023
1.6.4 235 7/17/2023
1.6.3 196 7/17/2023
1.6.2 294 7/12/2023
1.6.1 288 6/30/2023
1.6.0 203 6/26/2023
1.5.9 229 6/22/2023
1.5.8 257 6/15/2023
1.5.7.1 241 6/14/2023
1.5.7 243 6/14/2023
1.5.6.2 290 6/7/2023
1.5.6.1 247 6/7/2023
1.5.6 232 6/7/2023
1.5.5.2 275 5/26/2023
1.5.5.1 262 5/26/2023
1.5.5 252 5/26/2023
1.5.4.4 229 5/25/2023
1.5.4.3 265 5/23/2023
1.5.4.2 348 5/17/2023
1.5.4.1 244 5/16/2023
1.5.4 333 5/11/2023
1.5.3 237 5/11/2023
1.5.2 257 5/10/2023
1.5.1 257 5/10/2023
1.5.0 307 5/6/2023
1.4.0 269 5/5/2023
1.3.9 322 4/23/2023
1.3.8.6 228 4/23/2023
1.3.8.5 231 4/21/2023
1.3.8.1 303 4/12/2023
1.3.8 237 4/11/2023
1.3.7 260 4/9/2023
1.3.6.3 342 4/1/2023
1.3.6.2 267 3/31/2023
1.3.6.1 268 3/31/2023
1.3.6 218 3/31/2023
1.3.5 233 3/30/2023
1.3.4.1 316 3/29/2023
1.3.4 260 3/28/2023
1.3.3 239 3/28/2023
1.3.2 269 3/26/2023
1.3.1 336 3/22/2023
1.3.0 270 3/21/2023
1.2.0 270 3/21/2023
1.1.0 277 3/17/2023
1.0.9 288 3/15/2023
1.0.8 289 3/15/2023
1.0.7 265 3/15/2023
1.0.6 277 3/13/2023
1.0.5 283 3/13/2023
1.0.4 258 3/13/2023
1.0.1 372 2/23/2023
1.0.0 301 2/20/2023