Comments (6)
Sounds like your scenario is broadcast messages from server to clients. And the clients are from console app.
You can use HubConnection
to connect to Azure SignalR Service. Sample usage is at here.
Two things are different from connecting to a self-hosted ASP.NET Core SignalR Server:
from azuresignalr-samples.
@olavt Thanks for the feedback!
I assume you mean starting client connections from .NET Core Console App to Azure SignalR Service.
If you already have a console app working with self-hosted ASP.NET Core SignalR, you don't have to change anything in your console app.
The only change you need is to call AddAzureSignalR
and UseAzureSignalR
in your ASP.NET Core SignalR server and configure the connection string. Then your console app will be automatically connecting to Azure SignalR Service.
from azuresignalr-samples.
Add a link to the console app sample in aspnet/SignalR and close the issue.
from azuresignalr-samples.
I was looking for a sample with a console app connecting directly to the Azure SignalR Service with no ASP.NET Core SignalR Server involved.
from azuresignalr-samples.
Could you describe your scenario in more details?
Right now you always need an ASP.NET Core SignalR Server if you want duplex communication between your clients and your server.
If you only need to push messages from server to clients, then you can use our REST API without having a SignalR Server. [The real-time signin sample] is showing this pattern. The difference is the clients are using JavaScript.
from azuresignalr-samples.
The scenario is to use Azure SignalR service as a fast way to get messages / events from a publisher to consumers from pure console apps running without any web / GUI.
from azuresignalr-samples.
Related Issues (20)
- [BidirectionChat] issues and clarifications
- The example does not work with signalR emulator
- Seeking guidance on counting the number of connected users to a signalR users group HOT 1
- EventGrid sample is broken HOT 1
- Connection string missing required properties endpoint HOT 2
- Azure Signal R Adding User in Isolated Process HOT 1
- Negotiate end point connection error
- Connection Error on Negotiate endpoint HOT 1
- Local.Setting.Json issues - ConnectionString HOT 4
- StateHAsChanged to InvokeAsync
- How to use Azure ManagedIdentityCredential with this Library? HOT 1
- No Available Server Connexion HOT 3
- Management Client sample needs refreshed HOT 1
- UseAzureSignalR deprecated
- Connection to WebSocket disconnects no matter the timeout increases. (Azure SignalR) HOT 2
- Possible to 'act' on a signalr function app OnDisconnected invocation? HOT 2
- Net8 Azure SignalR OIDC authentication HOT 9
- SignalR in Serverless Mode does not notify client when Application Server is down HOT 6
- How to access the files from the sub folders in index.html?
- OnConnectedAsync & OnDisconnectedAsync not being called on startconnection HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azuresignalr-samples.