Can we use SignalR in .NET Rest API project? - signalr

I have minimal API projects in .NET core 7. The frontend project is separate and created in Vue JS. I need to use SignalR for the notification module, but I can't figure out if this is really possible?
in.NET, all I have is REST APIs for my project, I created an API for SingleR, and it's being called from Vue JS, but the message is not being delivered to the client. Connect ID is being generated. Do I need to create some background services etc. in my understanding, once REST API is being called, it can't be connected forever for WebSocket purpose.

Related

Is there a way to build a Web API in the ASP.Net Core ReactJS Template?

I've fiddled with Backend Servers using NodeJS in the past and want to build a Web API for a game. I also want that same Web Server to have a Front-end page (For logging in and changing some data the Web API needs for requests, basically).
I'd like the API to be available via localhost/api/v1/.. and currently have a React Page for the Login stuff ect (using the ASP.Net core React template).
How would I go adding in the Web API part? If I understood correct, the ASP.Net Core React template creates both a react front-end and ASP.Net Core back-end already?

How to Create New Project in FireBase using .net Mvc

I want to create a new project in Firebase and create new android App and download there google-service.json file. Everything Using programmatically. I tried to login with third party credentials after that what to do understand.
Can this happens?
Firebase has a REST API for creating and managing projects. Since it's REST based, it can be called from any platform that can make HTTP calls (including .NET).
For more information on this API, see the documentation for the Firebase Management API.

Signalr broadcast from web api

What is the best practice to SignalR broadcast from webapi which is located in another project to mvc application when you install signalr package in the mvc application?
MVC - localhost:8080
API - localhost:8080/api (lives in a different project)
Hubs - Shared class library for Hubs
The problem is, if i install signalr package in MVC application, it doesnt work, but if i install it in API application, it then works.
Any ideas?
You don't need hubs to be shared, hubs are necessary (if you use the Hubs API) only to the broadcaster. You can remove their usage from the MVC project.
Moreover, you do not need the full SignalR package in both. The WebAPI will hardly have its own JS clients (they come from the MVC one), so it is enough to install just the SignalR .NET client library. Same reasoning on the MVC project, that is just a client from a SignalR perspective, so you just need to install the SignalR JS package. I'm assuming you are broadcasting from WebAPI project directly towards the MVC users in their browsers, however if you are trying to achieve a server-to-server broadcasting then you'll need the .NET client library there too, but still no need to share hubs.

Using SocketScan SDK with C# Web Service

What I am trying to do is to call a web service using jquery (ajax json call) and use this SocketScan sdk in the web service (C# based web service).
As, my Mobile App uses only Jquery so I have to make use of this Socketscan sdk in the web service only.
I want to build a sample app for the same. How can I achieve this?
I have added the dll reference to my web service and can see all the methods used in dll but I am not able to understand the flow of dll.
Regards
Aman
Telerik AppBuilder is based on Cordova, so you can't call native code directly and the ScanAPI SDK doesn't support javascript. You will need a plugin which wraps the native SDK (C#, Java or Objective-C, depending on your target platform) and exposes the functionality you need to your app. You may have to develop a Cordova plugin, if there isn't already a plugin released under a suitable license for your app.

How to share Meteor Backend server with a Web and mobile app

I am working on an eCommerce project. I want to use amazing meteorjs for this project. I want to know is it possible to share meteor back end server( collections, methods, authentication) with a web and mobile app not just MongoDB. If its possible Please let me know how we can use the same Meteor backend server for multiple apps.
The Meteor client talks to the server using the simple DDP protocol. DDP clients have been written for a variety of other platforms, including Android and iOS.

Resources