From d12c624f694de7f85aa5f3309b8941f5e93002a7 Mon Sep 17 00:00:00 2001 From: Jeffrey Su Date: Sat, 11 May 2024 00:45:43 +0800 Subject: [PATCH 1/2] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 871d0cfa6c..84bd63797c 100644 --- a/readme.md +++ b/readme.md @@ -206,7 +206,7 @@ app.UseMessageHandlerForMp("/WeixinAsync", 本库包含了 .NET Framework/.NET Standard 2.0+/.NET Core 3.1/.NET 6/.NET 7/.NET 8 等多个版本的源代码(核心逻辑完全一致): -* 使用 Visual Studio 2022 打开 Demo(支持所有版本):.NET 8.0 - [Senparc.Weixin.Sample.Net7.sln](https://github.com/JeffreySu/WeiXinMPSDK/tree/Developer/Samples/All/net8-mvc)(包含源码引用推荐) +* 使用 Visual Studio 2022 打开 Demo(支持所有版本):.NET 8.0 - [Senparc.Weixin.Sample.Net8.sln](https://github.com/JeffreySu/WeiXinMPSDK/tree/Developer/Samples/All/net8-mvc)(包含源码引用推荐) * 使用 Visual Studio 2019 或更高版本打开 .NET Framework Demo:[Senparc.Weixin.MP.Sample.Net45.sln](https://github.com/JeffreySu/WeiXinMPSDK/tree/Developer/Samples/All/net45-mvc/)(不包含源码,仅引用类库) * 使用 Visual Studio 2019 或更高版本打开命令行 Console Demo(.NET Core):[Senparc.Weixin.MP.Sample.Consoles.vs2019.sln](https://github.com/JeffreySu/WeiXinMPSDK/tree/Developer/Samples/All/console) From 65c0c2c402366f696d26209e7c61ae1faa2ac4eb Mon Sep 17 00:00:00 2001 From: JeffreySu Date: Sun, 12 May 2024 16:41:22 +0800 Subject: [PATCH 2/2] Squashed 'src/Senparc.WebSocket/' changes from 156252aee..10be708d1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 10be708d1 发布新版本 d1deae7ae 升级新版本号 2a8749762 升级基础包 b0f59cd34 更新 NeuChar 包 #2113 感谢 @ulyanovsk ac26f936f 更新 CO2NET 及 NeuChar 包 c9b75144a 分配新版本号 fc8277100 Merge branch 'Developer' of https://github.com/JeffreySu/WeiXinMPSDK into Developer 0c9add199 v6.7.300 添加 CsRedis 的注册,同时引用最新版本 CO2NET b86de41b1 Sample v5.401.2,所有版本升级到 *.*.301 42523c503 发布 *.*.300 正式版 06e40f484 完成 Senparc DI 改造,发布正式版 e0f1fcc5e 发布新版本Preivew1 332da31d6 更新 NeuChar 及 CO2NET 最新版本 13cdfe360 modify 1f4f89c9b 发布正式版,分配版本号 bf65f6327 更新CO2NET正式版 673f99bca 升级 到 preview,更新 CO2NET/NeuChar c1fbd9fc6 更新 nuget 包:CO2NET、NeuChar e792c075c 更新 copyright 年份信息 af8c0704c WebSocket v0.10.100-preview1 5a821562d 更新CO2NET和NeuChar,准备分离AspNet 214a58fbb v6.6.104 引用新版本 NeuChar,优化 MessageHandler 同步方法兼容策略 8c071e4a8 .net 4.5 Sample 更新 nuget 引用 d52ea1ee6 MP v16.9.103 解决 MessageHandler 初始化无响应的问题 git-subtree-dir: src/Senparc.WebSocket git-subtree-split: 10be708d173ffbbcc33f80f0298d3c73ef52a31a --- .../Helpers/WebSocketHelper.cs | 2 +- .../WebSocketMessageHandler.cs | 2 +- .../Senparc.WebSocket/Register.cs | 2 +- .../WebSocketHandler_NET45.cs | 2 +- .../Routes/WebSocketRoute.cs | 2 +- .../Routes/WebSocketRouteHandler.cs | 2 +- .../Senparc.WebSocket.csproj | 2 +- .../Senparc.WebSocket.netcore3.csproj | 74 +++++++------------ .../Senparc.WebSocket.vs2017.csproj | 28 +------ .../SignalR/SenparcWebSocketHubBase.cs | 4 +- .../Senparc.WebSocket/WebSocketConfig.cs | 2 +- 11 files changed, 39 insertions(+), 83 deletions(-) diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/Helpers/WebSocketHelper.cs b/src/Senparc.WebSocket/Senparc.WebSocket/Helpers/WebSocketHelper.cs index 93134ed886..565abc6636 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/Helpers/WebSocketHelper.cs +++ b/src/Senparc.WebSocket/Senparc.WebSocket/Helpers/WebSocketHelper.cs @@ -1,5 +1,5 @@ /*---------------------------------------------------------------- - Copyright (C) 2019 Senparc + Copyright (C) 2020 Senparc 文件名:WebSocketHelper.cs 文件功能描述:WebSocket处理类 diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/MessageHandlers/WebSocketMessageHandler.cs b/src/Senparc.WebSocket/Senparc.WebSocket/MessageHandlers/WebSocketMessageHandler.cs index 3414606622..7dafdd2b3d 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/MessageHandlers/WebSocketMessageHandler.cs +++ b/src/Senparc.WebSocket/Senparc.WebSocket/MessageHandlers/WebSocketMessageHandler.cs @@ -1,5 +1,5 @@ /*---------------------------------------------------------------- - Copyright (C) 2019 Senparc + Copyright (C) 2020 Senparc 文件名:WebSocketMessageHandler.cs 文件功能描述:WebSocketMessageHandler基类 diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/Register.cs b/src/Senparc.WebSocket/Senparc.WebSocket/Register.cs index 2fb294b929..a7c8ef7a51 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/Register.cs +++ b/src/Senparc.WebSocket/Senparc.WebSocket/Register.cs @@ -1,5 +1,5 @@ /*---------------------------------------------------------------- - Copyright (C) 2019 Senparc + Copyright (C) 2020 Senparc 文件名:Register.cs 文件功能描述:注册 Senparc.WebSocket 服务 diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketHandler/WebSocketHandler_NET45.cs b/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketHandler/WebSocketHandler_NET45.cs index 5cb93cbde3..c3905e56ee 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketHandler/WebSocketHandler_NET45.cs +++ b/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketHandler/WebSocketHandler_NET45.cs @@ -1,5 +1,5 @@ /*---------------------------------------------------------------- - Copyright (C) 2019 Senparc + Copyright (C) 2020 Senparc 文件名:WebSocketHandler.cs 文件功能描述:WebSocket处理程序 diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketRoute.cs b/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketRoute.cs index 24c82b28df..6fa1581120 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketRoute.cs +++ b/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketRoute.cs @@ -1,5 +1,5 @@ /*---------------------------------------------------------------- - Copyright (C) 2019 Senparc + Copyright (C) 2020 Senparc 文件名:WebSocketRoute.cs 文件功能描述:WebSocket的Route类(主要为了重写GetVirtualPath, diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketRouteHandler.cs b/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketRouteHandler.cs index 2cb870b7b3..4fb1384b2e 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketRouteHandler.cs +++ b/src/Senparc.WebSocket/Senparc.WebSocket/Routes/WebSocketRouteHandler.cs @@ -1,5 +1,5 @@ /*---------------------------------------------------------------- - Copyright (C) 2019 Senparc + Copyright (C) 2020 Senparc 文件名:WebSocketRouteHandler.cs 文件功能描述:WebSocketRouteHandler,处理WebSocket请求 diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.csproj b/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.csproj index d5f218a6a9..29fff1b3db 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.csproj +++ b/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.csproj @@ -85,7 +85,7 @@ - 1.0.102 + 1.0.103 diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.netcore3.csproj b/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.netcore3.csproj index 7da305f6e0..6479e69f6d 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.netcore3.csproj +++ b/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.netcore3.csproj @@ -1,29 +1,23 @@ - - + - net45;netstandard2.0;netcoreapp3.0 - 0.9.102 + net45;netstandard2.0;netstandard2.1;netcoreapp3.1 + 0.10.500 Senparc.WebSocket Senparc.WebSocket - true - 微信公众账号 - WebSocket 模块 Senparc.Weixin SDK 开源项目: https://github.com/JeffreySu/WeiXinMPSDK - Senparc Copyright © 2004~2019 + Senparc Copyright © 2004~2020 微信,weixin,公众号,WeChat,Senparc,盛派,SDK,C#,JSSDK,微信支付,分布式,小程序,WebSocket - - Jeffrey Su Senparc https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md https://github.com/JeffreySu/WeiXinMPSDK Senparc.WebSocket.dll - 微信公众号SDK for C# https://github.com/JeffreySu/WeiXinMPSDK http://sdk.weixin.senparc.com/Images/Logo.jpg @@ -55,14 +49,12 @@ v0.8.2 引用最新版本 CO2NET v0.8.3 提供带符号的 nuget 包(.snupkg) v0.9.0 使用最新版本 Senparc.Weixin,支持 .NET Core 3.0 - + https://github.com/JeffreySu/WeiXinMPSDK - ..\..\..\..\Senparc.Weixin.MP.BuildOutPut $(DefineConstants);RELEASE - ..\..\..\..\Senparc.Weixin.MP.BuildOutPut @@ -73,18 +65,22 @@ prompt MinimumRecommendedRules.ruleset - - ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\ ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\net45\Senparc.WebSocket.xml - ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\ ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\netstandard2.0\Senparc.WebSocket.xml - + + ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\ + ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\netstandard2.1\Senparc.WebSocket.xml + + + ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\ + ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\netcoreapp3.1\Senparc.WebSocket.xml + @@ -98,7 +94,6 @@ - @@ -107,52 +102,35 @@ + - - + + + + + + + + + + + - - - + - - - - - 1.1.0 - - - - - TRACE - - - - \ No newline at end of file diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.vs2017.csproj b/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.vs2017.csproj index ebda996302..57830ffaef 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.vs2017.csproj +++ b/src/Senparc.WebSocket/Senparc.WebSocket/Senparc.WebSocket.vs2017.csproj @@ -1,13 +1,10 @@ - - + net45;netstandard2.0 - 0.9.0 + 0.9.400 Senparc.WebSocket Senparc.WebSocket - true - 微信公众账号 - WebSocket 模块 @@ -16,14 +13,11 @@ Senparc Copyright © 2004~2019 微信,weixin,公众号,WeChat,Senparc,盛派,SDK,C#,JSSDK,微信支付,分布式,小程序,WebSocket - - Jeffrey Su Senparc https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md https://github.com/JeffreySu/WeiXinMPSDK Senparc.WebSocket.dll - 微信公众号SDK for C# https://github.com/JeffreySu/WeiXinMPSDK http://sdk.weixin.senparc.com/Images/Logo.jpg @@ -55,14 +49,12 @@ v0.8.2 引用最新版本 CO2NET v0.8.3 提供带符号的 nuget 包(.snupkg) v0.9.0 使用最新版本 Senparc.Weixin,支持 .NET Core 3.0 - + https://github.com/JeffreySu/WeiXinMPSDK - ..\..\..\..\Senparc.Weixin.MP.BuildOutPut $(DefineConstants);RELEASE - ..\..\..\..\Senparc.Weixin.MP.BuildOutPut @@ -73,18 +65,14 @@ prompt MinimumRecommendedRules.ruleset - - ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\ ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\net45\Senparc.WebSocket.xml - ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\ ..\..\..\..\Senparc.Weixin.MP.BuildOutPut\netstandard2.0\Senparc.WebSocket.xml - @@ -98,7 +86,6 @@ - @@ -108,33 +95,27 @@ - - - - - 1.1.0 - - TRACE - - diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/SignalR/SenparcWebSocketHubBase.cs b/src/Senparc.WebSocket/Senparc.WebSocket/SignalR/SenparcWebSocketHubBase.cs index df2e5fc095..0c9ac6437b 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/SignalR/SenparcWebSocketHubBase.cs +++ b/src/Senparc.WebSocket/Senparc.WebSocket/SignalR/SenparcWebSocketHubBase.cs @@ -1,5 +1,5 @@ /*---------------------------------------------------------------- - Copyright (C) 2019 Senparc + Copyright (C) 2020 Senparc 文件名:SenparcWebSocketHubBase.cs 文件功能描述:SenparcWebSocketHub 基类 @@ -9,7 +9,7 @@ ----------------------------------------------------------------*/ -#if NETSTANDARD2_0 || NETCOREAPP3_0 +#if !NET45 using Microsoft.AspNetCore.SignalR; using Senparc.WebSocket.Exceptions; using System; diff --git a/src/Senparc.WebSocket/Senparc.WebSocket/WebSocketConfig.cs b/src/Senparc.WebSocket/Senparc.WebSocket/WebSocketConfig.cs index ba07763b27..b3a0d8d70f 100644 --- a/src/Senparc.WebSocket/Senparc.WebSocket/WebSocketConfig.cs +++ b/src/Senparc.WebSocket/Senparc.WebSocket/WebSocketConfig.cs @@ -1,5 +1,5 @@ /*---------------------------------------------------------------- - Copyright (C) 2019 Senparc + Copyright (C) 2020 Senparc 文件名:WebSocketRouteConfig.cs 文件功能描述:自动配置WebSocket路由