I have a service written in C # that does not seem clean when the computer goes into sleep mode. The user must manually stop and restart the service in order to maintain functionality. I know what the problem is, but I do not know where to fix it. How do Windows services work when entering / exiting sleep and hibernation?
How do services respond to violent events? Actually it depends.
In your service, you can handle hibernate / suspend / etc events by processing them in your service
protected override bool OnPowerEvent(PowerBroadcastStatus powerStatus) { //do stuff here }
Source: https://habr.com/ru/post/919890/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/919885/android-joining-multipart-files-together-to-make-a-single-file&usg=ALkJrhio2B8bJDJ6o1eBtpesxGiwRCMp6wDoes PySide support Python 3? - pythonGoogle Places API: page marker errors - google-places-apihow to install the previous version on TestFlight - testflightInstall pyside from python3 on os x - pythonhow to scale BufferedImage - javaimshow and histogram2d: can't make them work - pythonpip install PySide does not check QtCore Framework (OS X) - python-3.xHow to read the contents of a binary file in a string in Clojure? - clojureTemporary std :: lines returning garbage - c ++All Articles