Category "service"

How can I use/inject a service in a "normal" c# class like in Blazor @inject ClassName classObject

I have a Blazor Project, in the Program.cs(formaly aka Startup.cs) I added a service builder.Services.AddSingleton<Models.UserVisit>();

Start Background service when app is in background

How can I start an alarm using background services when we receive notification ? When my application is active then background service start easily, but when a

I must foreground service when receives location information only once in android 10 and above?

hello friends, i want receive update user location and show in text view only once and remove update location when it received. i must use foreground service f

How to detect the 'service stop' command in Linux

I'm writing a C application to drive a LED strip on a Linux machine: the application listens on a TCP socket port to receive commands. If the connection is term

Windows azure mobile service script how to?

Long time ago, at the time of Windows Phone, I created an Azure mobile services and I used scripts to modify data inserted in table. A few days ago, I created a

Should I initialise an Angular service in its constructor or in the ngOnInit method of the app.component?

I'm new to Angular. I have a service that needs to subscribe to a subject provided by another service. If this was a component, I would create the subscription

Create WSDL for an ASP.Net Core ApiController

I am creating a service using ASP.Net Core. The service is based on the ApiController. [ApiController] public class XmlALaCarteServiceController : ControllerBa

How do I make the correct call from services using Angular?

Below, I have created a service of name util.service to call in manage-actives-crud.component.ts inside ngOnInit . Saying that everything that is different from

C# Service HttpClient reponse null

I have gone through all the possible posts and I have not found any solution that works for me (There is no more to see the mess in imports), please help. :( I

iOS PWA 'added to home screen' cache is expiring after a day

I'm building an installable PWA from a CRA. I've added a custom service worker that caches all external requests using the service worker cache API. After the f

Kafka Headless Service Issue

Headless service does not bind to new IPs. A pod restart is required. When both zookeepers and brokers restarted at same time brokers are not able to connect wi

Openshift routes are not redirected to particular service

I have deployed few services of my application on openshift : E.g., app-ui, app-backend,app-store ,main. I have defined separate routes for these services to ac

Parameter 0 of constructor in 'Controller' required a bean of type 'service' that could not be found. Not working: adding annotations, componentscans

I'm trying to use Services and DTOs in my project (trying to learn what they are and how they should be used). First, I had only Controllers, Models and Reposit

Is there a PowerShell command to tell PS not to wait for a service to start before continuing?

Powershell is waiting for a service to start or stop before it moves on to the next line in the script, but I need it to move on without waiting. The idea beh

running python script as a systemd service

I have a python script myScript.py which is writing on a file every 2 second. But when I want to run this script as a systemd service, service works but not wri

Add dependency between two systemd services to start again if one of them is killed

I have two systemd services A.service and B.service in /etc/systemd/system/ directory. Below is the configuration in A.service [Unit] Description=A Service [Se

Android not make GET request after app closing from Service

First of all sorry if such sort of question is already asked before. I want to make a app which make a GET request or Simply Open A URL to tell server that app

Android not make GET request after app closing from Service

First of all sorry if such sort of question is already asked before. I want to make a app which make a GET request or Simply Open A URL to tell server that app