EaCloud.AspNetCore
7.0.3.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package EaCloud.AspNetCore --version 7.0.3.3
NuGet\Install-Package EaCloud.AspNetCore -Version 7.0.3.3
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="EaCloud.AspNetCore" Version="7.0.3.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EaCloud.AspNetCore --version 7.0.3.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EaCloud.AspNetCore, 7.0.3.3"
#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.
// Install EaCloud.AspNetCore as a Cake Addin #addin nuget:?package=EaCloud.AspNetCore&version=7.0.3.3 // Install EaCloud.AspNetCore as a Cake Tool #tool nuget:?package=EaCloud.AspNetCore&version=7.0.3.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EaCloud AspNetCore 组件
说明
EaCloud AspNetCore 组件,提供 AspNetCore 的服务端功能的封装。
用法
可按照如下配置方式使用:
- 通过nuget引用
EaCloud.AspNetCore
程序集
Install-Package EaCloud.AspNetCore
- 在
appsettings.json
中 的EaCloud
节点下添加如下配置节点
{
//Cors跨域策略
"Cors": {
"PolicyName": "EaCloudAPI", //策略名称
"AllowAnyHeader": true, //允许任意请求头
"WithHeaders": [ "Authorization", "Accept", "Accept-Language" ], //允许的请求头,当 AllowAnyHeader = false 时生效
"AllowAnyMethod": true, //允许任意方法
"WithMethods": [ "POST", "PUT", "DELETE" ], //允许的方法,当 AllowAnyMethod = false 时生效
"AllowCredentials": true, //允许跨域凭据,优先级高于 DisallowCredentials 设置
"DisallowCredentials": false, //禁止跨域凭据
"AllowAnyOrigin": true, //允许任意来源
"WithOrigins": [ "https://localhost:44398", "http://127.0.0.1:5001" ], //允许的来源,当 AllowAnyOrigin = false 时生效
"Enabled": true //设置跨源资源共享服务是否启用
},
//Mvc选项
"Mvc": {
"DefaultLanguage": "zh_CN", //默认语言,可实现AcceptLanguage请求语言的消息字符解析,语言文件存放于“Localization”路径下
"IsLowercaseJsonProperty": false, //Json属性名称驼峰(lowerCase)写法设置,默认:false
"IsLowercaseUrls": false, //URL驼峰(lowerCase)写法设置,默认:false
"ReferenceLoopHandling": "Ignore", //循环引用处理:"Error"、"Ignore"、"Serialize",默认:"Ignore"
"NullValueHandling": "Include", //Null值处理:"Include"、"Ignore",默认:"Include"
"StringEnumConvert": false, //String与Enum类型转换,默认:false
"StringLongConvert": true, //String与Long类型转换,默认:true
"DateFormatHandling": "Iso", //日期时间格式化处理:"Iso"、"Microsoft",默认:"Iso"
"DateFormatString": "", //日期时间格式化字符串,例如:"yyyy/MM/dd HH:mm:ss",默认:""
"DateTimeZoneHandling": "Local", //日期时间时区处理:"Local"、"Utc"、Unspecified"、RoundtripKind",默认:"Local"
"DateParseHandling": "DateTime" //日期时间解析处理:"None"、"DateTime"、"DateTimeOffset",默认:"DateTime""
},
//宿主配置策略
"Host": {
//终结点
"Endpoints": {
"Http": {
"Address": "", //IP地址(*或者不填默认本机任意IP)
"Port": "38062", //监听端口
"Enabled": true //是否启用
},
"Https": {
"Address": "*", //IP地址(*或者不填默认本机任意IP)
"Port": "38063", //监听端口
//SSL证书(不为空时将使用HTTPS)
"Certificate": {
"Source": "File", //源(固定字符“File”)
"Path": "Certificate\\eacloud.pfx", //证书路径
"Password": "password" //证书密钥
},
"Enabled": true //是否启用
}
}
},
//SignalR实时通信配置
//心跳监测机制:A. 以客户端为基准的机制。客户端配置:serverTimeoutInMilliseconds + 服务端端配置:keepAliveinterval,建议 serverTimeoutInMilliseconds 的值是 keepAliveinterval 的两倍,从而保证客户端不进入 onclose 回调,不掉线。
//心跳监测机制:B. 以服务端为基准的机制。客户端配置:keepAliveIntervalInmillisecods + 服务端配置:clientTimeoutInterval,建议 clientTimeoutInterval 的值是 keepAliveIntervalInmillisecods 的两倍,从而保证不进服务器端的 OnDisconnectedAsync 回调,即不掉线。
"SignalR": {
//如果客户端在此时间间隔内未收到消息(包括保持活动状态),则服务器会将客户端视为已断开连接。默认超时为30秒。
//由于实现方式的原因,客户端实际标记为断开连接可能需要更长的时间。建议值为 KeepAliveInterval 值的两倍。
"ClientTimeoutInterval": 30,
//如果客户端在此时间间隔内未发送初始握手消息,连接将关闭。 这是一种高级设置,只应在握手超时错误由于严重网络延迟而发生时进行修改。默认超时为15秒。
//有关握手过程的详细信息,请参阅SignalR 集线器协议规范。
"HandshakeTimeout": -1,
//如果服务器未在此时间间隔内发送消息,则会自动发送 ping 消息,使连接保持打开状态。默认间隔为15秒。
//更改 KeepAliveInterval时,请更改客户端上的 ServerTimeout/serverTimeoutInMilliseconds 设置。 建议的 ServerTimeout/serverTimeoutInMilliseconds 值为 KeepAliveInterval 值的两倍。
"KeepAliveInterval": 15,
"MaximumReceiveMessageSize": 51200, //单个传入集线器消息的最大消息大小。默认值为32KB。
"StreamBufferCapacity": 1024, //客户端上载流的最大缓冲区大小。默认大小为10。
"MessagePackEnabled": true, //启用MessagePack(支持二进制内容传输)
"RoutePattern": "/signalr", //线路型式(用于挂载SignalR终结点)
"Enabled": true //是否启用
},
}
交流
QQ群号:863605868 | 微信号:SeonHu |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- EaCloud (>= 7.0.3.3)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 7.0.13)
- Microsoft.AspNetCore.Authentication.MicrosoftAccount (>= 7.0.13)
- Microsoft.AspNetCore.Authorization (>= 7.0.13)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 7.0.13)
- Microsoft.AspNetCore.SignalR.Protocols.MessagePack (>= 7.0.13)
- Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (>= 7.0.13)
- Microsoft.AspNetCore.SignalR.StackExchangeRedis (>= 7.0.13)
NuGet packages (13)
Showing the top 5 NuGet packages that depend on EaCloud.AspNetCore:
Package | Downloads |
---|---|
EaCloud.Identity
EaCloud 身份认证组件,基于 AspNetCore.Identity 和 EaCloud数据仓储模型 的身份认证实现。 |
|
EaCloud.SMS
EaCloud 短信组件,封装阿里云、逸峰信盈通验证码、通知、推广短信处理功能。目前已完成验证码短信发送、验证的处理机制。 |
|
EaCloud.Hangfire
EaCloud Hangfire 后台任务组件,封装基于 Hangfire 后台任务的服务端实现。 |
|
EaCloud.File
EaCloud 文件组件,封装基于Web的文件资源管理服务,支持数据库、物理存储、数据存储服务三种存储方式,物理存储模式下支持静态资源URL映射。 |
|
EaCloud.Pack.Audit
EaCloud 审计模块,包含操作审计和数据审计。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.1.8 | 43 | 11/13/2024 |
8.0.1.7 | 360 | 10/9/2024 |
8.0.1.6 | 353 | 9/29/2024 |
8.0.1.5 | 424 | 9/13/2024 |
8.0.1.4 | 404 | 8/10/2024 |
8.0.1.3 | 393 | 8/7/2024 |
8.0.1.2 | 386 | 8/7/2024 |
8.0.1.1 | 383 | 8/7/2024 |
8.0.0.9 | 394 | 8/7/2024 |
8.0.0.8 | 268 | 8/5/2024 |
8.0.0.7 | 280 | 8/2/2024 |
8.0.0.6 | 286 | 8/1/2024 |
8.0.0.5 | 287 | 8/1/2024 |
8.0.0.4 | 225 | 7/31/2024 |
8.0.0.3 | 293 | 7/30/2024 |
8.0.0.2 | 324 | 7/25/2024 |
8.0.0.1 | 320 | 7/24/2024 |
7.0.9.4 | 562 | 7/19/2024 |
7.0.9.3 | 554 | 7/11/2024 |
7.0.9.2 | 546 | 7/6/2024 |
7.0.9.1 | 565 | 7/3/2024 |
7.0.8.9 | 595 | 6/28/2024 |
7.0.8.8 | 583 | 6/26/2024 |
7.0.8.7 | 599 | 6/22/2024 |
7.0.8.6 | 574 | 6/14/2024 |
7.0.8.5 | 601 | 5/31/2024 |
7.0.8.4 | 594 | 5/21/2024 |
7.0.8.3 | 597 | 5/21/2024 |
7.0.8.2 | 540 | 5/20/2024 |
7.0.8.1 | 564 | 5/20/2024 |
7.0.7.9 | 533 | 5/15/2024 |
7.0.7.8 | 525 | 5/10/2024 |
7.0.7.7 | 497 | 5/9/2024 |
7.0.7.6 | 528 | 5/9/2024 |
7.0.7.5 | 616 | 5/7/2024 |
7.0.7.4 | 597 | 4/28/2024 |
7.0.7.3 | 605 | 4/26/2024 |
7.0.7.2 | 603 | 4/21/2024 |
7.0.7.1 | 608 | 4/19/2024 |
7.0.6.9 | 632 | 4/15/2024 |
7.0.6.8 | 565 | 4/11/2024 |
7.0.6.7 | 576 | 4/11/2024 |
7.0.6.6 | 613 | 4/7/2024 |
7.0.6.5 | 597 | 4/7/2024 |
7.0.6.4 | 564 | 4/7/2024 |
7.0.6.3 | 589 | 4/7/2024 |
7.0.6.2 | 592 | 4/3/2024 |
7.0.6.1 | 615 | 4/3/2024 |
7.0.5.9 | 585 | 3/27/2024 |
7.0.5.8 | 600 | 3/23/2024 |
7.0.5.7 | 629 | 3/17/2024 |
7.0.5.6 | 647 | 3/17/2024 |
7.0.5.5 | 632 | 3/16/2024 |
7.0.5.4 | 643 | 3/13/2024 |
7.0.5.3 | 621 | 3/13/2024 |
7.0.5.2 | 672 | 3/6/2024 |
7.0.5.1 | 713 | 2/21/2024 |
7.0.4.9 | 736 | 2/21/2024 |
7.0.4.8 | 696 | 2/18/2024 |
7.0.4.7 | 777 | 2/5/2024 |
7.0.4.6 | 790 | 2/1/2024 |
7.0.4.5 | 777 | 1/26/2024 |
7.0.4.4 | 826 | 1/22/2024 |
7.0.4.3 | 784 | 1/17/2024 |
7.0.4.2 | 762 | 1/16/2024 |
7.0.4.1 | 809 | 1/16/2024 |
7.0.3.9 | 806 | 1/15/2024 |
7.0.3.8 | 784 | 1/3/2024 |
7.0.3.7 | 803 | 12/28/2023 |
7.0.3.6 | 831 | 12/27/2023 |
7.0.3.5 | 827 | 12/22/2023 |
7.0.3.4 | 796 | 12/22/2023 |
7.0.3.3 | 910 | 12/13/2023 |
7.0.3.2 | 849 | 12/13/2023 |
7.0.3.1 | 889 | 12/12/2023 |
7.0.2.9 | 945 | 11/26/2023 |
7.0.2.8 | 915 | 11/26/2023 |
7.0.2.7 | 944 | 9/26/2023 |
7.0.2.6 | 962 | 9/25/2023 |
7.0.2.5 | 989 | 9/15/2023 |
7.0.2.4 | 1,112 | 7/27/2023 |
7.0.2.3 | 1,164 | 7/22/2023 |
7.0.2.2 | 1,161 | 7/22/2023 |
7.0.2.1 | 1,140 | 7/21/2023 |
7.0.1.9 | 1,150 | 7/21/2023 |
7.0.1.8 | 1,171 | 7/20/2023 |
7.0.1.7 | 1,128 | 7/20/2023 |
7.0.1.6 | 1,300 | 7/4/2023 |
7.0.1.5 | 1,314 | 6/16/2023 |
7.0.1.4 | 1,285 | 6/13/2023 |
7.0.1.3 | 1,510 | 6/8/2023 |
7.0.1.2 | 1,709 | 6/2/2023 |
7.0.1.1 | 1,623 | 5/11/2023 |
7.0.0.9 | 1,668 | 5/10/2023 |
7.0.0.8 | 1,665 | 5/10/2023 |
7.0.0.7 | 1,782 | 4/19/2023 |
7.0.0.6 | 1,763 | 4/18/2023 |
7.0.0.5 | 1,923 | 3/27/2023 |
7.0.0.4 | 1,782 | 3/23/2023 |
7.0.0.3 | 1,873 | 1/31/2023 |
7.0.0.2 | 1,987 | 1/30/2023 |
7.0.0.1 | 1,907 | 12/24/2022 |
6.0.2.5 | 4,071 | 11/16/2022 |
6.0.2.4 | 4,236 | 11/10/2022 |
6.0.2.3 | 5,126 | 10/11/2022 |
6.0.2.2 | 5,571 | 9/23/2022 |
6.0.2.1 | 5,795 | 8/14/2022 |
6.0.1.9 | 5,741 | 8/13/2022 |
6.0.1.8 | 6,044 | 6/6/2022 |
6.0.1.7 | 6,115 | 5/26/2022 |
6.0.1.6 | 6,270 | 5/11/2022 |
6.0.1.5 | 6,184 | 5/10/2022 |
6.0.1.4 | 6,567 | 4/8/2022 |
6.0.1.3 | 6,548 | 4/2/2022 |
6.0.1.2 | 6,577 | 4/2/2022 |
6.0.1.1 | 6,658 | 3/18/2022 |
6.0.0.9 | 6,376 | 3/5/2022 |
6.0.0.8 | 6,526 | 2/19/2022 |
6.0.0.7 | 6,482 | 2/15/2022 |
6.0.0.6 | 6,506 | 2/14/2022 |
6.0.0.5 | 6,614 | 1/28/2022 |
6.0.0.4 | 6,073 | 1/13/2022 |
6.0.0.3 | 5,984 | 1/12/2022 |
6.0.0.2 | 3,857 | 12/21/2021 |
6.0.0.1 | 3,920 | 12/13/2021 |
5.0.3.7 | 5,678 | 10/16/2021 |
5.0.3.6 | 4,887 | 10/14/2021 |
5.0.3.5 | 4,849 | 10/13/2021 |
5.0.3.4 | 5,174 | 10/8/2021 |
5.0.3.3 | 4,776 | 9/17/2021 |
5.0.3.2 | 5,035 | 9/16/2021 |
5.0.3.1 | 4,969 | 9/15/2021 |
5.0.2.9 | 4,872 | 9/15/2021 |
5.0.2.8 | 4,606 | 8/31/2021 |
5.0.2.7 | 4,571 | 8/28/2021 |
5.0.2.6 | 4,777 | 8/22/2021 |
5.0.2.5 | 4,648 | 8/13/2021 |
5.0.2.4 | 4,545 | 8/13/2021 |
5.0.2.3 | 4,383 | 7/8/2021 |
5.0.2.2 | 4,327 | 7/1/2021 |
5.0.2.1 | 4,632 | 6/16/2021 |
5.0.1.9 | 4,255 | 5/12/2021 |
5.0.1.8 | 4,192 | 5/9/2021 |
5.0.1.7 | 4,414 | 5/7/2021 |
5.0.1.6 | 4,144 | 4/17/2021 |
5.0.1.5 | 3,991 | 4/16/2021 |
5.0.1.4 | 3,952 | 4/15/2021 |
5.0.1.3 | 3,956 | 4/15/2021 |
5.0.1.2 | 4,404 | 4/12/2021 |