![]() |
VOOZH | about |
dotnet add package NetPro.NetProShareRequestBody --version 6.0.16
NuGet\Install-Package NetPro.NetProShareRequestBody -Version 6.0.16
<PackageReference Include="NetPro.NetProShareRequestBody" Version="6.0.16" />
<PackageVersion Include="NetPro.NetProShareRequestBody" Version="6.0.16" />Directory.Packages.props
<PackageReference Include="NetPro.NetProShareRequestBody" />Project file
paket add NetPro.NetProShareRequestBody --version 6.0.16
#r "nuget: NetPro.NetProShareRequestBody, 6.0.16"
#:package NetPro.NetProShareRequestBody@6.0.16
#addin nuget:?package=NetPro.NetProShareRequestBody&version=6.0.16Install as a Cake Addin
#tool nuget:?package=NetPro.NetProShareRequestBody&version=6.0.16Install as a Cake Tool
[废弃]共享请求何响应中的body,避免各中间件重复解析body流。 特别注意:ResponseCacheData生命周期为scope
public void ConfigureServices(IServiceCollection services)
{
services.AddShareRequestBody();//用户共享存放中间件读取的body
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
//应放于所有中间价最上层
application.UseShareRequestBody();
}
private readonly RequestCacheData _requestCacheData;
public XXXController(RequestCacheData requestCacheData)
{
_requestCacheData = requestCacheData;
}
Console.Write(_requestCacheData.Body);
IServiceProvider获取RequestCacheData 对象private readonly RequestCacheData _requestCacheData;
public XXXController(IServiceProvider _serviceProvider)
{
_requestCacheData =_serviceProvider.GetService<ResponseCacheOption>()
}
Console.Write(_requestCacheData.Body);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 netcoreapp3.1 is compatible. |
Showing the top 2 NuGet packages that depend on NetPro.NetProShareRequestBody:
| Package | Downloads |
|---|---|
|
NetPro.Sign
Package Description |
|
|
NetPro.ResponseCache
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.16 | 492 | 7/24/2023 |
| 6.0.15 | 1,053 | 7/19/2022 |
| 6.0.14 | 1,041 | 7/10/2022 |
| 6.0.13 | 1,102 | 6/15/2022 |
| 6.0.12 | 1,046 | 6/15/2022 |
| 6.0.11 | 1,019 | 6/15/2022 |
| 6.0.10 | 1,011 | 6/11/2022 |
| 6.0.9 | 1,052 | 6/8/2022 |
| 6.0.8 | 1,028 | 5/26/2022 |
| 6.0.8-beta.3 | 257 | 5/24/2022 |
| 6.0.8-beta.2 | 262 | 5/24/2022 |
| 6.0.7 | 1,038 | 5/18/2022 |
| 6.0.6 | 1,047 | 4/28/2022 |
| 6.0.5-beta.20 | 260 | 4/27/2022 |
| 6.0.5-beta.19 | 291 | 4/25/2022 |
| 6.0.5-beta.18 | 252 | 4/22/2022 |
| 6.0.5-beta.17 | 275 | 4/16/2022 |
| 6.0.5-beta.16 | 272 | 4/8/2022 |
| 6.0.5-beta.15 | 284 | 4/8/2022 |
| 6.0.5-beta.14 | 290 | 4/7/2022 |