Senparc.CO2NET
0.7.1-preview3
Prefix Reserved
See the version list below for details.
dotnet add package Senparc.CO2NET --version 0.7.1-preview3
NuGet\Install-Package Senparc.CO2NET -Version 0.7.1-preview3
<PackageReference Include="Senparc.CO2NET" Version="0.7.1-preview3" />
paket add Senparc.CO2NET --version 0.7.1-preview3
#r "nuget: Senparc.CO2NET, 0.7.1-preview3"
// Install Senparc.CO2NET as a Cake Addin #addin nuget:?package=Senparc.CO2NET&version=0.7.1-preview3&prerelease // Install Senparc.CO2NET as a Cake Tool #tool nuget:?package=Senparc.CO2NET&version=0.7.1-preview3&prerelease
Senparc.CO2NET
Senparc.CO2NET 是一个支持 .NET Framework 和 .NET Core 的公共基础扩展库,包含常规开发所需要的基础帮助类。
开发者可以直接使用 CO2NET 为项目提供公共基础方法,免去重复准备和维护公共代码的痛苦。
Senparc.CO2NET 已经作为 Senparc.Weixin SDK、SCF 等 Senparc 系列产品的的基础库被依赖。
如何使用 Nuget 安装?
- CO2NET Nuget 地址:https://www.nuget.org/packages/Senparc.CO2NET
- 命令:
PM> Install-Package Senparc.CO2NET
阶段
目前发布的已经是稳定版,持续更新中,您可关注本项目进展!
程序集在线文档:<a href="http://doc.weixin.senparc.com/html/G_Senparc_CO2NET.htm" target="_blank">http://doc.weixin.senparc.com/html/G_Senparc_CO2NET.htm</a>
本项目后期将会配备更加完整的文档,如果大家迫不及待想要尝试,可以打开解决方案文件,参考单元测试项目(Senparc.CO2NET.Tests),每一个方法都能找到对应的用法,本项目完整指之一就是将单元测试代码覆盖率做到接近100%。
视频预告介绍
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net35 is compatible. net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 3.5
- Newtonsoft.Json (>= 12.0.1)
-
.NETFramework 4.0
- Newtonsoft.Json (>= 12.0.1)
-
.NETFramework 4.5
- Newtonsoft.Json (>= 12.0.1)
-
.NETStandard 2.0
- Microsoft.AspNetCore.Hosting (>= 2.2.0)
- Microsoft.AspNetCore.Http (>= 2.2.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Caching.Abstractions (>= 2.2.0)
- Microsoft.Extensions.DependencyInjection (>= 2.2.0)
- Microsoft.Extensions.Http (>= 2.2.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 2.2.0)
- Newtonsoft.Json (>= 12.0.1)
- System.Diagnostics.TraceSource (>= 4.3.0)
- System.Threading.Thread (>= 4.3.0)
- System.Xml.XmlSerializer (>= 4.3.0)
NuGet packages (50)
Showing the top 5 NuGet packages that depend on Senparc.CO2NET:
Package | Downloads |
---|---|
Senparc.Weixin
微信 SDK - Senparc.Weixin SDK 基础模块 Senparc.Weixin SDK 开源项目: https://github.com/JeffreySu/WeiXinMPSDK |
|
Senparc.NeuChar
NeuChar SDK 跨平台信息交互标准 |
|
Senparc.CO2NET.APM
Senparc.CO2NET.APM Application Performance Management |
|
Senparc.CO2NET.AspNet
Senparc.CO2NET.AspNet library Senparc.CO2NET open source project: https://github.com/Senparc/Senparc.CO2NET |
|
Senparc.CO2NET.Cache.Redis
WeChat Public Account - Redis Module Senparc.Weixin SDK Open Source Project: https://github.com/JeffreySu/WeiXinMPSDK |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on Senparc.CO2NET:
Repository | Stars |
---|---|
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 8.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
|
|
JeffreySu/WechatVideoCourse
《微信公众号+小程序快速开发》视频教程课件及代码
|
|
Senparc/NeuChar
Senparc.NeuChar 跨平台信息交互标准
|
Version | Downloads | Last updated |
---|---|---|
3.0.0-beta1 | 302 | 10/24/2024 |
2.5.2 | 3,260 | 9/11/2024 |
2.5.1 | 5,231 | 8/22/2024 |
2.5.0 | 353 | 8/22/2024 |
2.4.3 | 10,317 | 7/28/2024 |
2.4.2 | 6,950 | 7/13/2024 |
2.4.1.1 | 9,502 | 5/17/2024 |
2.4.1 | 166 | 5/11/2024 |
2.4.0.1 | 16,192 | 2/8/2024 |
2.4.0 | 18,237 | 1/23/2024 |
2.3.1 | 33,559 | 12/14/2023 |
2.3.0 | 29,873 | 11/15/2023 |
2.3.0-rc.2 | 411 | 11/8/2023 |
2.2.1 | 38,575 | 7/12/2023 |
2.2.0 | 43,237 | 6/27/2023 |
2.1.9 | 13,995 | 6/14/2023 |
2.1.8 | 28,151 | 5/28/2023 |
2.1.7.3 | 89,838 | 1/28/2023 |
2.1.7.2 | 80,750 | 1/12/2023 |
2.1.7.1 | 70,316 | 1/10/2023 |
2.1.4.2 | 10,925 | 12/20/2022 |
2.1.4.1 | 2,830 | 12/19/2022 |
2.1.3 | 54,249 | 11/15/2022 |
2.1.2 | 110,784 | 7/21/2022 |
2.1.1.1 | 1,606 | 7/14/2022 |
2.1.1 | 17,896 | 5/30/2022 |
2.1.0 | 166,501 | 4/3/2022 |
2.0.5.4 | 13,713 | 4/1/2022 |
2.0.3 | 80,429 | 2/8/2022 |
2.0.1 | 69,843 | 2/5/2022 |
2.0.0 | 52,551 | 11/12/2021 |
1.6.0 | 28,698 | 11/6/2021 |
1.5.2-preview4 | 7,125 | 9/11/2021 |
1.5.2-preview3 | 4,006 | 8/30/2021 |
1.5.0-preview3 | 40,470 | 7/22/2021 |
1.5.0-preview2 | 962 | 7/22/2021 |
1.5.0-preview1 | 3,554 | 7/14/2021 |
1.5.0-beta1 | 1,866 | 7/5/2021 |
1.4.400 | 189,784 | 6/8/2021 |
1.4.300.3-preview2.net6p.3... | 2,085 | 4/26/2021 |
1.3.300 | 38,566 | 4/13/2021 |
1.3.200 | 225,374 | 8/10/2020 |
1.3.110 | 19,888 | 5/30/2020 |
1.3.104.1 | 5,430 | 4/22/2020 |
1.3.104 | 193,037 | 3/15/2020 |
1.3.103 | 169,571 | 3/1/2020 |
1.3.102 | 8,714 | 2/28/2020 |
1.3.101 | 26,714 | 2/20/2020 |
1.1.100 | 1,995 | 2/20/2020 |
1.1.100-preview2 | 8,908 | 2/13/2020 |
1.1.100-preview1 | 6,681 | 1/27/2020 |
1.0.103 | 176,621 | 11/18/2019 |
1.0.102 | 113,514 | 10/14/2019 |
1.0.102-preview7.1.1 | 593 | 10/9/2019 |
1.0.102-preview7 | 1,553 | 10/7/2019 |
1.0.102-preview2 | 2,137 | 10/2/2019 |
1.0.101 | 40,064 | 9/28/2019 |
1.0.100 | 19,308 | 9/24/2019 |
0.9.1 | 18,833 | 9/19/2019 |
0.9.0 | 75,730 | 9/15/2019 |
0.8.10 | 15,786 | 9/11/2019 |
0.8.9 | 29,483 | 8/22/2019 |
0.8.9-preivew1 | 1,039 | 8/17/2019 |
0.8.5 | 1,900 | 8/9/2019 |
0.8.4 | 6,615 | 7/30/2019 |
0.8.3 | 21,676 | 7/6/2019 |
0.8.2 | 127,887 | 6/6/2019 |
0.8.2-preview1 | 1,182 | 6/3/2019 |
0.8.1-preview1 | 14,912 | 5/23/2019 |
0.8.0-preview1 | 4,291 | 5/23/2019 |
0.7.3.1-preview2 | 1,289 | 5/21/2019 |
0.7.3.1-preview1 | 2,681 | 5/21/2019 |
0.7.3-preview1 | 3,225 | 5/21/2019 |
0.7.2.1 | 1,882 | 5/20/2019 |
0.7.1 | 20,109 | 5/13/2019 |
0.7.1-preview3 | 1,259 | 5/7/2019 |
0.7.0-preview3 | 10,633 | 4/29/2019 |
0.6.1-preview2 | 4,802 | 4/28/2019 |
0.6.1-preview1 | 5,395 | 4/27/2019 |
0.6.0-preview1 | 9,538 | 4/17/2019 |
0.5.2 | 142,822 | 1/22/2019 |
0.5.2-preview2 | 1,189 | 1/21/2019 |
0.5.2-preview1 | 4,892 | 1/18/2019 |
0.5.1.1 | 7,479 | 1/16/2019 |
0.5.1 | 18,015 | 1/8/2019 |
0.5.0 | 2,983 | 1/8/2019 |
0.4.4 | 11,101 | 1/3/2019 |
0.4.4-preview2 | 7,575 | 12/28/2018 |
0.4.3-preview6 | 4,337 | 12/27/2018 |
0.4.3-preview3 | 5,091 | 12/26/2018 |
0.4.3-preview2 | 4,803 | 12/26/2018 |
0.4.3-preview1 | 1,410 | 12/26/2018 |
0.4.2 | 9,717 | 12/26/2018 |
0.4.1 | 18,212 | 12/18/2018 |
0.3.0.2 | 65,916 | 11/18/2018 |
0.2.17-preview1 | 1,100 | 11/16/2018 |
0.2.16 | 108,372 | 10/11/2018 |
0.2.15 | 20,736 | 10/10/2018 |
0.2.14 | 46,137 | 9/29/2018 |
0.2.11 | 2,054 | 9/27/2018 |
0.2.10 | 61,599 | 9/1/2018 |
0.2.8.2 | 24,495 | 8/25/2018 |
0.2.7 | 1,867 | 8/19/2018 |
0.2.6 | 19,921 | 8/2/2018 |
0.2.4 | 6,542 | 7/28/2018 |
0.2.3 | 6,374 | 7/21/2018 |
0.2.0 | 11,585 | 7/14/2018 |
0.1.11 | 8,685 | 7/7/2018 |
0.1.8 | 2,350 | 7/6/2018 |
0.1.7 | 3,471 | 7/5/2018 |
0.1.6.1 | 8,527 | 7/4/2018 |
0.1.6 | 1,885 | 7/4/2018 |
0.1.3 | 2,598 | 6/23/2018 |
0.1.2 | 3,109 | 6/21/2018 |
0.1.1 | 1,631 | 6/21/2018 |
0.1.0 | 3,977 | 6/14/2018 |
v0.1.0 构建基础代码,从 Senparc.Weixin 分离公共代码
v0.1.1 优化代码,单元测试接近100%覆盖
v0.1.2 添加 IDomainExtensionCacheStrategy.RegisterCacheStrategyDomain() 方法
v0.1.3 添加 EntityUtility.FillSystemType()方法对 Int32[] 和 Int64[] 的处理
v0.1.4 添加 SenparcSetting 全局配置属性
v0.1.5 RegisterServiceExtension.AddSenparcGlobalServices() 方法可自动获取 SenparcSetting 全局设置
v0.1.6 解决 XXE 漏洞,继承自 XmlDocument 对象,自动将 XmlResolver 设为 null
v0.1.6.1 添加 Register.UseSenparcGlobal() 方法
v0.1.7 扩展 ReflectionHelper.GetStaticMember() 方法
v0.1.8 .net core 下的 RegisterService.Start() 方法中,env 可以传入 null,以便在控制台等环境中完成注册
v0.1.9
1、RegisterService 取消 public 的构造函数,统一使用 RegisterService.Start() 初始化
2、重构 Register.UseSenparcGlobal() 方法,承担扩展缓存扫描功能
3、添加 UnregisteredDomainCacheStrategyException 异常类型
4、 .net framework 和 .net core 版本统一强制在构造函数中要求提供 SenparcSetting 参数
v0.1.10 调整 SenparcSetting 参数,将分布式缓存连接信息归入到 SenparcSetting 中
v0.1.11 提供 SenparcSetting.BuildFromWebConfig() 方法
v0.2.0 缓存策略提供超时设置接口
v0.2.1 “当前扩展缓存策略没有进行注册”异常信息提供更加详细的缓存类型信息
v0.2.2 RequestExtension 添加对 NETSTANDARD2_0 的支持
v0.2.3 优化 RequestExtension.AbsoluteUri() 方法的输出结果
v0.2.4
1、添加 CacheException 缓存异常类型
2、添加对 IMemoryCache 的未设置提示
3、优化 UnregisteredDomainCacheStrategyException,使用 CacheException 作为基类
v0.2.5 优化 SenparcID,其中所有方法支持 .net standard 2.0
v0.2.6 增加 DateTimeHelper.GetUnixDateTime() 方法,标记过期 GetWeixinDateTime() 方法
v0.2.7 添加 ServerUtility
v0.2.8 添加 SenparcDI.GetIServiceProvider() 方法,以支持其他依赖注入框架
v0.2.9
1、优化 Config.RootDictionaryPath 方法,可自动获取默认值
2、添加 SerializerHelper.GetObject(this string jsonString, Type type) 方法
v0.2.10 ObjectExtensions.ToJson() 方法提供 indented 方法,支持缩进格式
v0.2.11 修复 .NET Core 下模拟表单 Post 参数无效的问题
v0.2.14 ToJson() 方法优化
v0.2.15 Post 方法添加 headerAddition参数
v0.2.17 启用 SystemTime.Now,方便单元测试或紧急情况下改动系统当前时间
v0.2.18 支持 Senparc.CO2NET.APM
v0.3.0 升级 SenparcTrace,使用队列
v0.3.1 更新 RequestUtility.GetQueryString() 方法
v0.4.0 使用 .NETStandard2.0 统一支持 .NET Core,放弃对 .NET Core 1.x 的单独适配
v0.4.1 为 UrlEncode() 和 UrlDecode() 方法添加在 .net framework 环境下的编码类型选择
v0.4.2 优化 ServerUtility 类中方法在 docker 或 linux 环境下的路径识别
v0.4.3 使用 DateTimeOffset 取代 DateTime
v0.4.4 提供 SenparcTrace.RecordAPMLog 参数RequestUtility.Post.cs
v0.5.0 提供对 .NET Core Console 的全面支持
v0.5.1 ToJson() 方法添加 jsonSerializerSettings 参数
v0.5.1.1 添加 Sex.未设置 枚举值
v0.5.2 添加 SenparcDI.GetRequiredService() 方法,提供线程内独立 ServiceProvider 实例
v0.6.0 提供缓存异步接口
v0.6.1 完善 SystemTime,添加 NowTicks 属性
v0.7.0 优化 HttpClient,重构 RequestUtility(包括 Post 和 Get),引入 HttpClientFactory 机制
v0.7.1
1、添加 NowDiff 属性
2、添加 DayOfWeekString、DILifecycleType 配置和枚举
v0.7.1
1、添加 NowDiff 属性
2、添加 DayOfWeekString、DILifecycleType 配置和枚举
3、修复:.NET 4.5 下 Post 方法未指定 content-type