This repository was archived by the owner on Nov 13, 2025. It is now read-only.
Commit f5ee572
authored
feat(Performance): refactor send/receive improve performance (#26)
* refactor: 重构代码
* doc: 更新 readme 文档
* chore: 更新 xml 配置文件
* refactor: 删除 SendState 状态类
* refactor: 移除 UnsupportedOSPlatform 方法
* refactor: Sender 重构
* refactor: 重构 factory
* chore: 更新依赖
* refactor: 精简代码
* refactor: 更改构造方法
* feat: 移除 EnableLog 设置
* feat: 增加 ThrowIfNotConnected 扩展
* refactor: 增加 TcpSocketClientOptions 扩展方法
* refactor: 精简代码功能代码下沉
* refactor: DefaultTcpSocketClient 参数重构
* doc: 更新注释
* refactor: 精简 Receiver 代码
* feat: 更改 ReceiveAsync 接口
* refactor: 增加 Options 属性
* refactor: 更新 Options 参数
* refactor: 更改顺序
* refactor: 移除 Options 属性
* refactor: 更新代码
* fix: 增加是否连接返回值
* test: 更新单元测试
* test: 更新单元测试
* chore: 更新依赖
* refactor: 移除 ITcpSocketClientProvider 精简代码
* test: 更新单元测试
* test: 更新单元测试
* chore: bump version 9.0.8
* chore: 更新更新依赖包
* refactor: 增加配置 Options 逻辑
* refactor: 增加 Callback 回调防止死锁
* refactor: 移动数据适配器到接口 ITcpSocketClient
* test: 精简单元测试
* refactor: 删除不需要的单元测试
* refactor: 移动适配器相关代码到扩展方法中
* test: 删除冗余单元测试
* test: 增加 SendAsync 单元测试覆盖率
* refactor: 移除 ConfigureDataConverters 方法
* chore: 更新依赖版本 9.0.3
* test: 精简单元测试
* fix: 修复 Callback 未释放问题
* feat: 增加连接超时逻辑
* test: 增加单元测试
* feat: 增加连接超时功能
* test: 增加单元测试
* feat: 重构 GetOrCreate 方法
* test: 更新单元测试
* test: 增加接收取消单元测试
* test: 增加单元测试1 parent eadd805 commit f5ee572
20 files changed
Lines changed: 421 additions & 2223 deletions
File tree
- src/Longbow.TcpSocket
- Extensions
- Interface
- Internal
- test/UnitTestTcpSocket
Lines changed: 95 additions & 144 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | | - | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 34 | | |
43 | 35 | | |
44 | 36 | | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | | - | |
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
| |||
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
62 | | - | |
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
| |||
0 commit comments