Giter Club home page Giter Club logo

Comments (6)

xscript avatar xscript commented on September 2, 2024 1

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:

  • URL is like this.
  • Use access token for authentication, which is generated like here.

from azuresignalr-samples.

xscript avatar xscript commented on September 2, 2024

@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.

xscript avatar xscript commented on September 2, 2024

Add a link to the console app sample in aspnet/SignalR and close the issue.

from azuresignalr-samples.

olavt avatar olavt commented on September 2, 2024

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.

xscript avatar xscript commented on September 2, 2024

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.

olavt avatar olavt commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.