TouchSocket.Core
                             
                            
                                4.0.0-beta.10
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    See the version list below for details.
dotnet add package TouchSocket.Core --version 4.0.0-beta.10
NuGet\Install-Package TouchSocket.Core -Version 4.0.0-beta.10
<PackageReference Include="TouchSocket.Core" Version="4.0.0-beta.10" />
<PackageVersion Include="TouchSocket.Core" Version="4.0.0-beta.10" />
<PackageReference Include="TouchSocket.Core" />
paket add TouchSocket.Core --version 4.0.0-beta.10
#r "nuget: TouchSocket.Core, 4.0.0-beta.10"
#:package TouchSocket.Core@4.0.0-beta.10
#addin nuget:?package=TouchSocket.Core&version=4.0.0-beta.10&prerelease
#tool nuget:?package=TouchSocket.Core&version=4.0.0-beta.10&prerelease
TouchSocket.Core
简介
这是一个基础服务功能的库,其中包含:内存池、对象池、文件池、流式数据解包器、等待逻辑池、AppMessenger、3DES加密、Xml快速存储、运行时间测量器、文件快捷操作、高性能二进制序列化器、规范日志接口等。
功能特性
1. 内存与对象管理
- 内存池:高效管理内存资源,减少内存分配与回收开销,提升系统性能。
- 对象池:复用对象实例,避免频繁创建和销毁对象带来的性能损耗。
2. 文件管理
- 文件池:优化文件资源使用,提高文件操作效率。
- 文件快捷操作:提供便捷的文件读写、复制、移动等操作方法。
3. 数据处理
- 流式数据解包器:高效解包流式数据,便于数据处理和解析。
- 高性能二进制序列化器:实现快速、高效的二进制数据序列化和反序列化。
4. 逻辑处理
- 等待逻辑池:管理等待逻辑,提高异步操作处理效率。
- AppMessenger:实现应用内消息传递机制,方便模块间通信。
5. 加密与存储
- 3DES 加密:提供 3DES 加密算法,保障数据安全性。
- Xml 快速存储:实现 XML 数据的快速存储和读取。
6. 性能监测与日志
- 运行时间测量器:测量代码块运行时间,助力性能优化。
- 规范日志接口:提供统一的日志记录接口,方便日志管理。
支持的目标框架
- net45
- net462
- net472
- net481
- netstandard2.0
- netstandard2.1
- net6.0
- net9.0
- net8.0
使用方法
| Product | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 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 was computed. 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. | 
| .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 is compatible. | 
| .NET Framework | net461 was computed. net462 is compatible. 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 4.6.2- Newtonsoft.Json (>= 13.0.3)
- System.IO.Pipelines (>= 6.0.3)
- System.Text.Json (>= 8.0.5)
 
- 
                                                    .NETStandard 2.0- Newtonsoft.Json (>= 13.0.3)
- System.IO.Pipelines (>= 6.0.3)
- System.Text.Json (>= 8.0.5)
 
- 
                                                    .NETStandard 2.1- Newtonsoft.Json (>= 13.0.3)
- System.IO.Pipelines (>= 6.0.3)
- System.Text.Json (>= 8.0.5)
 
- 
                                                    net6.0- Newtonsoft.Json (>= 13.0.3)
- System.IO.Pipelines (>= 6.0.3)
- System.Text.Json (>= 8.0.5)
 
- 
                                                    net8.0- Newtonsoft.Json (>= 13.0.3)
- System.IO.Pipelines (>= 8.0.0)
 
- 
                                                    net9.0- Newtonsoft.Json (>= 13.0.3)
 
NuGet packages (5)
Showing the top 5 NuGet packages that depend on TouchSocket.Core:
| Package | Downloads | 
|---|---|
| TouchSocket TouchSocket是.Net(包括 C# 、VB.Net、F#)的一个整合性的socket网络通信框架。包含了 tcp、udp、ssl等一系列的通信模块。一键式解决 tcp 黏分包问题,udp大数据包分片组合问题等。使用协议模板,可快速实现「固定包头」、「固定长度」、「区间字符」等一系列的数据报文解析。 TouchSocket is Net (including C #, VB An integrated socket network communication framework based on Net and F #. It includes a series of communication modules such as TCP, UDP, SSL, etc. One click solution to TCP packet sticking and UDP packet fragmentation and combination problems. By using protocol templates, a series of data message parsing techniques such as "fixed packet header", "fixed length", and "interval characters" can be quickly implemented. | |
| TouchSocket.Rpc 这是一个超轻量、高性能、可扩展的Rpc管理平台框架。您可以基于该框架,快速开发出Rpc执行。目前已扩展开发DmtpRpc、XmlRpc、JsonRpc、WebApi部分。 说明文档:https://touchsocket.net/ | |
| TouchSocket.Core.DependencyInjection 这是一个为Core中扩展Ioc容器为IServiceCollection的库。 说明文档:https://touchsocket.net/ | |
| TouchSocket.Core.Autofac 这是一个为Core中扩展Ioc容器为Autofac的库。 说明文档:https://touchsocket.net/ | |
| Baboon 这是一个wpf的,模块化开发的功能库。支持模块加载、下载、更新等。同时包含了本地数据库、本地日志组件等功能。 | 
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | 
|---|---|---|
| 4.0.0-rc.10 | 29 | 10/30/2025 | 
| 4.0.0-rc.5 | 3,154 | 10/26/2025 | 
| 4.0.0-rc.2 | 107 | 10/24/2025 | 
| 4.0.0-rc.1 | 1,722 | 10/22/2025 | 
| 4.0.0-beta.140 | 10,216 | 10/18/2025 | 
| 4.0.0-beta.120 | 7,931 | 10/12/2025 | 
| 4.0.0-beta.96 | 5,607 | 10/5/2025 | 
| 4.0.0-beta.80 | 3,008 | 9/28/2025 | 
| 4.0.0-beta.70 | 3,812 | 9/26/2025 | 
| 4.0.0-beta.57 | 9,841 | 9/21/2025 | 
| 4.0.0-beta.28 | 2,506 | 9/17/2025 | 
| 4.0.0-beta.27 | 5,746 | 9/11/2025 | 
| 4.0.0-beta.25 | 4,843 | 9/7/2025 | 
| 4.0.0-beta.13 | 2,157 | 9/4/2025 | 
| 4.0.0-beta.6 | 1,553 | 9/1/2025 | 
| 3.1.19 | 1,038 | 10/25/2025 | 
| 3.1.18 | 1,868 | 9/27/2025 | 
| 3.1.17 | 2,040 | 9/9/2025 | 
| 3.1.16 | 1,846 | 8/21/2025 | 
| 3.1.15 | 1,983 | 8/3/2025 | 
| 3.1.14 | 7,089 | 7/20/2025 | 
| 3.1.13 | 6,605 | 7/14/2025 | 
| 3.1.12 | 4,383 | 7/8/2025 | 
| 3.1.11 | 22,730 | 6/24/2025 | 
| 3.1.10 | 4,143 | 6/23/2025 | 
| 3.1.9 | 2,693 | 6/22/2025 | 
| 3.1.8 | 10,595 | 6/15/2025 | 
| 3.1.7 | 15,872 | 6/8/2025 | 
| 3.1.6 | 7,738 | 6/2/2025 | 
| 3.1.5 | 16,415 | 5/24/2025 | 
| 3.1.4 | 7,623 | 5/20/2025 | 
| 3.1.3 | 5,100 | 5/18/2025 | 
| 3.1.2 | 7,784 | 5/11/2025 | 
| 3.1.1 | 7,372 | 4/29/2025 | 
| 3.1.0 | 5,933 | 4/26/2025 | 
| 3.0.26 | 4,819 | 4/20/2025 | 
| 3.0.25 | 7,377 | 4/12/2025 | 
| 3.0.24 | 7,753 | 4/7/2025 | 
| 3.0.23 | 3,136 | 4/6/2025 | 
| 3.0.20 | 10,187 | 3/30/2025 | 
| 3.0.19 | 14,354 | 3/23/2025 | 
| 3.0.18 | 10,844 | 3/16/2025 | 
| 3.0.17 | 5,125 | 3/12/2025 | 
| 3.0.16 | 5,341 | 3/9/2025 | 
| 3.0.15 | 14,236 | 3/2/2025 | 
| 3.0.14 | 17,103 | 2/15/2025 | 
| 3.0.13 | 13,223 | 1/27/2025 | 
| 3.0.12 | 11,356 | 1/19/2025 | 
| 3.0.11 | 1,533 | 1/12/2025 | 
| 3.0.10 | 3,506 | 1/5/2025 | 
| 3.0.9 | 7,525 | 12/22/2024 | 
| 3.0.8 | 5,961 | 12/15/2024 | 
| 3.0.7 | 5,337 | 12/8/2024 | 
| 3.0.6 | 4,416 | 12/1/2024 | 
| 3.0.4 | 3,421 | 11/24/2024 | 
| 3.0.3 | 5,110 | 11/17/2024 | 
| 3.0.1 | 1,995 | 11/14/2024 | 
| 3.0.0 | 2,096 | 11/13/2024 | 
| 2.1.10 | 6,792 | 10/25/2024 | 
| 2.1.0 | 2,062 | 9/15/2024 | 
| 2.0.18 | 1,937 | 9/10/2024 | 
| 2.0.17 | 2,965 | 8/30/2024 | 
| 2.0.16 | 2,224 | 8/19/2024 | 
| 2.0.15 | 1,978 | 8/9/2024 | 
| 2.0.14 | 3,309 | 7/24/2024 | 
| 2.0.12 | 1,681 | 7/17/2024 | 
| 2.0.11 | 1,663 | 7/12/2024 | 
| 2.0.10 | 4,945 | 5/31/2024 | 
| 2.0.0 | 4,379 | 3/9/2024 |