EasilyNET.WebCore 4.25.312.103

There is a newer version of this package available.
See the version list below for details.
dotnet add package EasilyNET.WebCore --version 4.25.312.103
                    
NuGet\Install-Package EasilyNET.WebCore -Version 4.25.312.103
                    
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.312.103" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EasilyNET.WebCore" Version="4.25.312.103" />
                    
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.312.103
                    
#r "nuget: EasilyNET.WebCore, 4.25.312.103"
                    
#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.312.103
                    
Install EasilyNET.WebCore as a Cake Addin
#tool nuget:?package=EasilyNET.WebCore&version=4.25.312.103
                    
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 is compatible. 
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.506.150 125 6 days ago
4.25.429.162 135 13 days ago
4.25.429.103 159 13 days ago
4.25.411.142 131 a month ago
4.25.409.92 148 a month ago
4.25.403.133 162 a month ago
4.25.319.113 154 2 months ago
4.25.312.103 158 2 months ago
4.25.227.135 101 2 months ago
4.25.221.115 104 3 months ago
4.25.212.95 98 3 months ago
4.25.211.140 97 3 months ago
4.25.124.223 86 4 months ago
4.25.116.110 86 4 months ago
4.25.115.121 62 4 months ago
4.25.114.172 83 4 months ago
4.25.109.111 90 4 months ago
4.25.108.182 82 4 months ago
4.25.108.160 84 4 months ago
4.25.1.1 111 4 months ago
3.24.1224.141 93 5 months ago
3.24.1216.116 115 5 months ago
3.24.1206.100 107 5 months ago
3.24.1205.171 108 5 months ago
3.24.1202.150 107 5 months ago
3.24.1126.231 100 6 months ago
3.24.1126.172 103 6 months ago
3.24.1126.114 100 6 months ago
3.24.1126.104 106 6 months ago
3.24.1125.181 95 6 months ago
3.24.1125.104 104 6 months ago
3.24.1121.183 100 6 months ago
3.24.1120.183 98 6 months ago
3.24.1119.31 102 6 months ago
3.24.1115.143 95 6 months ago
3.24.1113.100 110 6 months ago
3.24.1112.125 104 6 months ago
3.24.1107.140 104 6 months ago
3.24.1107.54 103 6 months ago
3.24.1107.34 101 6 months ago
3.24.1105.111 107 6 months ago
3.24.1103.31 115 6 months ago
3.24.1103 125 6 months ago
3.24.1031.135 117 6 months ago
3.24.1031.112 108 6 months ago
3.24.1031.104 109 6 months ago
3.24.1029.142 120 6 months ago
3.24.1025.30 116 7 months ago
3.24.1022.142 102 7 months ago
3.24.1018.204 166 7 months ago
3.24.1018.175 158 7 months ago
3.24.1018.166 151 7 months ago
3.24.1018.93 172 7 months ago
3.24.1017.42 114 7 months ago
3.24.1016.161 113 7 months ago
3.24.1015.231 109 7 months ago
3.24.1015.14 124 7 months ago
3.24.1012.114 116 7 months ago
3.24.1009.115 114 7 months ago
3.24.1008.160 109 7 months ago
3.24.1008.133 111 7 months ago
3.24.1007.185 114 7 months ago
3.24.1003.33 122 7 months ago
3.24.1002.162 114 7 months ago
3.24.929.143 115 7 months ago
3.24.929.141 124 7 months ago
3.24.929.131 104 7 months ago
3.24.929.122 113 7 months ago
3.24.926.184 125 8 months ago
3.24.926.182 112 8 months ago
3.24.926.175 124 8 months ago
3.24.924.160 112 8 months ago
3.24.924.133 128 8 months ago
3.24.924.124 116 8 months ago
3.24.924.10 114 8 months ago
3.24.924.1 117 8 months ago
3.24.923.234 121 8 months ago
3.24.923.232 110 8 months ago
3.24.923.155 113 8 months ago
3.24.919.92 124 8 months ago
3.24.914.125 112 8 months ago
3.24.914.115 118 8 months ago
3.24.914.111 118 8 months ago
3.24.911.95 139 8 months ago
3.24.908.215 125 8 months ago
3.24.904.200 126 8 months ago
3.24.828.163 126 8 months ago
3.24.820.173 129 9 months ago
3.24.814.92 138 9 months ago
3.24.812.115 150 9 months ago
3.24.802.100 122 9 months ago
3.24.801.162 116 9 months ago
3.24.801.160 117 9 months ago
3.24.730.164 99 9 months ago
3.24.730.91 112 9 months ago
3.24.724.91 110 10 months ago
3.24.718.105 140 10 months ago
3.24.716.95 120 10 months ago
3.24.712.94 123 7/12/2024
3.24.710.14 132 7/9/2024
3.24.709.105 153 7/9/2024
3.24.704.94 134 7/4/2024
3.24.701.90 137 7/1/2024
3.24.628.114 162 6/28/2024
3.24.627.145 129 6/27/2024
3.24.620.160 140 6/20/2024
3.24.613.115 130 6/13/2024
3.24.612.95 126 6/12/2024
3.24.528.90 126 5/28/2024
3.24.522.84 139 5/22/2024
3.24.512.213 122 5/12/2024
3.24.508.112 148 5/8/2024
2.2024.428.71 136 4/28/2024
2.2024.427.1128 122 4/27/2024
2.2.72 138 4/14/2024
2.2.71 129 4/12/2024
2.2.8 135 4/26/2024
2.2.6 138 4/10/2024
2.2.5 161 3/26/2024
2.2.4 142 3/25/2024
2.2.3 140 3/24/2024
2.2.2 169 3/21/2024
2.2.1 163 3/20/2024
2.2.0 152 3/13/2024
2.1.9 170 2/21/2024
2.1.8 149 2/18/2024
2.1.7 142 2/16/2024
2.1.6 152 2/14/2024
2.1.5 132 2/14/2024
2.1.4 196 2/9/2024
2.1.3 185 2/8/2024
2.1.2 176 2/5/2024
2.1.1.2 251 12/26/2023
2.1.1.1 155 12/26/2023
2.1.1 191 12/25/2023
2.1.0 197 12/17/2023
2.0.11 241 12/6/2023
2.0.1 232 11/15/2023
2.0.0 165 11/14/2023
1.9.1 173 11/1/2023
1.9.0 170 10/19/2023
1.9.0-preview2 362 10/12/2023
1.9.0-preview1 142 10/12/2023
1.8.9 230 10/11/2023
1.8.8 181 10/11/2023
1.8.7-rc2 145 9/21/2023
1.8.7-rc1 143 9/12/2023
1.8.6 213 8/31/2023
1.8.5 889 8/25/2023
1.8.4 209 8/24/2023
1.8.3 201 8/23/2023
1.8.2 267 8/22/2023
1.8.1 229 8/18/2023
1.8.0 229 8/15/2023
1.7.9 246 8/11/2023
1.7.8 176 8/11/2023
1.7.7 220 8/10/2023
1.7.6 225 8/9/2023
1.7.5 257 8/9/2023
1.7.4 315 8/3/2023
1.7.3 220 8/1/2023
1.7.2 199 7/31/2023
1.7.1 197 7/27/2023
1.7.0 210 7/25/2023
1.6.9 222 7/25/2023
1.6.8 215 7/24/2023
1.6.7 232 7/20/2023
1.6.6 220 7/19/2023
1.6.5 210 7/19/2023
1.6.4 216 7/17/2023
1.6.3 178 7/17/2023
1.6.2 275 7/12/2023
1.6.1 272 6/30/2023
1.6.0 186 6/26/2023
1.5.9 213 6/22/2023
1.5.8 241 6/15/2023
1.5.7.1 222 6/14/2023
1.5.7 226 6/14/2023
1.5.6.2 271 6/7/2023
1.5.6.1 228 6/7/2023
1.5.6 215 6/7/2023
1.5.5.2 256 5/26/2023
1.5.5.1 246 5/26/2023
1.5.5 235 5/26/2023
1.5.4.4 212 5/25/2023
1.5.4.3 247 5/23/2023
1.5.4.2 331 5/17/2023
1.5.4.1 224 5/16/2023
1.5.4 313 5/11/2023
1.5.3 220 5/11/2023
1.5.2 241 5/10/2023
1.5.1 241 5/10/2023
1.5.0 290 5/6/2023
1.4.0 254 5/5/2023
1.3.9 303 4/23/2023
1.3.8.6 212 4/23/2023
1.3.8.5 212 4/21/2023
1.3.8.1 287 4/12/2023
1.3.8 219 4/11/2023
1.3.7 243 4/9/2023
1.3.6.3 324 4/1/2023
1.3.6.2 249 3/31/2023
1.3.6.1 252 3/31/2023
1.3.6 199 3/31/2023
1.3.5 216 3/30/2023
1.3.4.1 295 3/29/2023
1.3.4 242 3/28/2023
1.3.3 220 3/28/2023
1.3.2 250 3/26/2023
1.3.1 315 3/22/2023
1.3.0 253 3/21/2023
1.2.0 250 3/21/2023
1.1.0 262 3/17/2023
1.0.9 270 3/15/2023
1.0.8 268 3/15/2023
1.0.7 245 3/15/2023
1.0.6 259 3/13/2023
1.0.5 266 3/13/2023
1.0.4 241 3/13/2023
1.0.1 352 2/23/2023
1.0.0 273 2/20/2023