Azure / azure-signalr

Azure SignalR Service SDK for .NET
https://aka.ms/signalr-service
MIT License
427 stars 101 forks source link

Management SDK persistent mode API calls do not fail when no server connection is connected #2060

Open vicancy opened 1 month ago

vicancy commented 1 month ago

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Change the SignalR service Networking ACL to deny "Server Connection".

Using ManagementSDK, all the API calls look working, hubContext.Clients.All.SendCoreAsync does not throw, hubContext.ClientManager.UserExistsAsync("user1") returns false, although the ManagementSDK is not connected to the service.

Expected behavior

The API calls should throw because the SDK is not connected.