c#/.net: detect presumably way being run use console application


i have c#/.net way run both console concentration service.
currently i give command-line choice start console application, nonetheless i prevaricate that.



is illusory programmatically detect presumably way being started service?



if pristine win32, i try starting use startservicectrldispatcher tumble behind console returned error_failed_service_controller_connect, nonetheless system.serviceprocess.servicebase.run() pops adult an errordialog fails following only advantage but signaling an blunder program.



any ideas?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members