You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bc3d823
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Cyaim.WebSocketServer/Cluster/Cyaim.WebSocketServer.Cluster.Hybrid.Implementations/RabbitMQMessageQueueService.cs
+31-1Lines changed: 31 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,36 @@ public async Task ConnectAsync()
86
86
}
87
87
}
88
88
89
+
/// <summary>
90
+
/// Verify connection is ready / 验证连接已就绪
91
+
/// </summary>
92
+
publicasyncTaskVerifyConnectionAsync()
93
+
{
94
+
awaitEnsureChannelAsync().ConfigureAwait(false);
95
+
96
+
if(_connection==null||!_connection.IsOpen)
97
+
{
98
+
thrownewInvalidOperationException("RabbitMQ connection is not ready");
99
+
}
100
+
101
+
if(_channel==null||!_channel.IsOpen)
102
+
{
103
+
thrownewInvalidOperationException("RabbitMQ channel is not ready");
104
+
}
105
+
106
+
// 简单访问一次属性,确保通道可用 / Simple property access to ensure channel is usable
- RabbitMQ.Client implementation for Hybrid cluster transport
19
-
- Support for .NET 9.0 and .NET 10.0
20
-
- Modular and pluggable design
21
-
</PackageReleaseNotes>
22
-
<Description>
23
-
RabbitMQ.Client implementation for WebSocketServer Hybrid cluster transport (message routing)
24
-
WebSocketServer 混合集群传输�?RabbitMQ.Client 实现(消息路由)
25
-
</Description>
26
-
</PropertyGroup>
27
-
<ItemGroupCondition="'$(TargetFramework)' == 'net6.0' Or '$(TargetFramework)' == 'net7.0' Or '$(TargetFramework)' == 'net8.0' Or '$(TargetFramework)' == 'net9.0' Or '$(TargetFramework)' == 'net10.0'">
- RabbitMQ.Client implementation for Hybrid cluster transport
19
+
- Support for .NET 9.0 and .NET 10.0
20
+
- Modular and pluggable design
21
+
</PackageReleaseNotes>
22
+
<Description>
23
+
RabbitMQ.Client implementation for WebSocketServer Hybrid cluster transport (message routing)
24
+
WebSocketServer 混合集群传输�?RabbitMQ.Client 实现(消息路由)
25
+
</Description>
26
+
</PropertyGroup>
27
+
<ItemGroupCondition="'$(TargetFramework)' == 'net6.0' Or '$(TargetFramework)' == 'net7.0' Or '$(TargetFramework)' == 'net8.0' Or '$(TargetFramework)' == 'net9.0' Or '$(TargetFramework)' == 'net10.0'">
Copy file name to clipboardExpand all lines: Cyaim.WebSocketServer/Cluster/Cyaim.WebSocketServer.Cluster.Hybrid.MessageQueue.RabbitMQ/RabbitMQMessageQueueService.cs
Copy file name to clipboardExpand all lines: Cyaim.WebSocketServer/Cluster/Cyaim.WebSocketServer.Cluster.Hybrid.Redis.FreeRedis/Cyaim.WebSocketServer.Cluster.Hybrid.Redis.FreeRedis.csproj
Copy file name to clipboardExpand all lines: Cyaim.WebSocketServer/Cluster/Cyaim.WebSocketServer.Cluster.Hybrid/Cyaim.WebSocketServer.Cluster.Hybrid.csproj
0 commit comments