Questions tagged [service]

A Service is a long-running executable that performs specific functions and which is designed not to require user intervention.

A Service is a long-running executable that performs specific functions and which is designed not to require user intervention.

Services usually provide an interface to Start, Stop, Pause and Restart the executable that is running in the computer's background.

23127 questions
5
votes
3 answers

Android: service destroyed when display is rotated

I've got a service that is running in a separate process. I'm finding that after the main process UI thread exits from onDestroy() that my service is being destroyed even though I've provided the application context with the binding and specified…
Syrinx
  • 51
  • 1
  • 3
5
votes
0 answers

Run only foreground service when app is closed to reduce memory usage

I am running a foreground service via broadcast receiver on boot completed. It starts the services as desired and take only a a fraction of the device memory use and when I launch the app it increased the device memory usage as it should but when I…
Suraj Giri
  • 202
  • 1
  • 13
5
votes
5 answers

Microservices and the "single point of failure" concept

One concept I don't entirely understand is the single point of failure. It seems to me that whenever you have multiple services, say A, B and C, involved in an entire system, then if any of them is down the system as a whole can't do anything that…
5
votes
1 answer

Unit testing custom validator of command object with dependency

I have a command object for registering user, and I want to check how old is the user. This command object has a service dependency. How can I test custom validator for my dateOfBirth property? As it looks now is taken straight from documentation,…
jjczopek
  • 3,319
  • 2
  • 32
  • 72
5
votes
1 answer

How to fire an event (client side) when I call a WCF service

I'd like to fire an event every time I call a WCF service. I've tried the following: var factory = new ChannelFactory(binding, endPointAdress); factory.Credentials.UserName.UserName = username; factory.Credentials.UserName.Password =…
Jean-Philippe Leclerc
  • 6,713
  • 5
  • 43
  • 66
5
votes
3 answers

Send sound to different audio devices

Is it possible to play a sound on a playback device that is not set as default playback device? I need to play multiple files simultaniously trough multiple output devices. Does anyone knows a solution for .net? (C#) Thanks!
herman
  • 71
  • 2
  • 4
5
votes
1 answer

Visual Studio MSI Installer: Asp.net Core as a Window Service

I am trying to create a MSI installer for asp.net core as a windows service. I was successful in creating the window service which host asp.net core application by using below links 1)…
C J
  • 429
  • 1
  • 10
  • 34
5
votes
0 answers

Android MediaPlayer: MediaPlayerNative: info/warning (10973, 0)

When i am playing 4-5 mp3 files, one after another, I get the following warning on logcat for every playback. What does it mean? and how to solve it? MediaPlayerNative: info/warning (10973, 0) I checked here, but no luck Thanks in advance
touhid udoy
  • 4,005
  • 2
  • 18
  • 31
5
votes
2 answers

Routing in app with firebase doesn`t work correct

https://github.com/Wilkuuu/Biblio In Books component in html i`ve : in app-routing : { path: 'book/:id', component: BookDetailComponent…
Arek Szumacher
  • 348
  • 1
  • 4
  • 14
5
votes
1 answer

Service stopForeground(false) remove notification when should not

Instead of stopForeground(true) calling, stopForeground(false) should retain the notification as it is (without ongoing state) unless it is dismissed by user/removed programmatically. This also should prevents notification flashing since I am…
5
votes
1 answer

Running Cygwin application as a Windows Service

I am working on WinDRBD (https://github.com/LINBIT/windrbd) a port of the Linux DRBD driver to Microsoft Windows. We want to run the user mode helper as a Windows Service (DRBD sometimes calls user space applications with call_usermodehelper(),…
Johannes Thoma
  • 1,026
  • 10
  • 21
5
votes
4 answers

how to turn windows service on if its off. control it from webapplication

i want to turn windows service on when it is off. is it possible to make via code from web application with c#? i am using asp.net mvc and c#.
r.r
  • 7,023
  • 28
  • 87
  • 129
5
votes
1 answer

Troubles when using named pipes in Windows service

I'm creating service for Windows 10. I've followed this tutorial. https://www.codeproject.com/Articles/499465/Simple-Windows-Service-in-Cplusplus But when I've added my code to this example, something happened and I can't stop service from Services…
Peter
  • 435
  • 1
  • 3
  • 11
5
votes
1 answer

Load testing services for mqtt

We need to make a full stack load testing. And the data journey is starting from mqtt client. Are there any good services to make a load testing for such case?
freeze
  • 546
  • 6
  • 16
5
votes
1 answer

.net core ubuntu change port when using service

I'm trying to test running .net core on a different port when using the service. However, I keep on getting an error with a status code 140. This occurs in my two attempts : 1) adding --server.urls=http://0.0.0.0:555 in the service…
Jeremy Loh
  • 175
  • 1
  • 9
1 2 3
99
100