Allow configuration Azure:SignalR:Enabled false to disable Azure SignalR
See original GitHub issueDescribe the bug
For netcore31, instead of manually call AddAzureSignalR
, you can enable or disable Azure SignalR through config:
{
"Azure": {
"SignalR": {
"Enabled": false
}
}
}
However, once AddAzureSignalR
is added to code, this configuration never works again, it does not sound a consistent behavior from the user’s perspective.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Disable local (access key) authentication with Azure ...
Navigate to your SignalR Service resource in the Azure portal. · in the Settings section of the menu sidebar, select Keys tab. ·...
Read more >Configure Azure SignalR Service to disable local ...
Disable local authentication methods so that your Azure SignalR Service exclusively requires Azure Active Directory identities for ...
Read more >Azure SignalR Service: No active connection for user
We need to disable or delete it to connect and use azure signalr normally. Official doc: Configure additional options.
Read more >azure-native.signalrservice.SignalR
Documentation for the azure-native.signalrservice.SignalR resource with examples, input properties, output properties, lookup functions, ...
Read more >Azure Functions and SignalR with Anthony Chu - YouTube
Whether it's chat, collaborative whiteboards, or live-updating maps and dashboards, real-time information delivered with technologies like ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think it would fundamentally make sense to have an Azure:SignalR:Enabled configuration item that would work even if you have AddAzureSignalR(). The documentation pretty clearly indicates for local dev we should bypass this, but offers no way to do this, absent writing our own conditional configuration code. I tried omiting the connection string, and it throws an exception. Then I found this article and tried the HostingStartupAssemblies setup, but in .net 5 this apparently either does not work or there’s more to it then this.
Even if it did work, I think the hostingstartupassemblies way of configuring this is incredibly obtuse and would make it very difficult for developers supporting the app to understand what is happening.
I was suprised when this didn’t work, can this be fixed please? 😃