I\'ve looked and couldn\'t find what should be a simple question:
How can a Windows Service determine the ServiceName for which it was started?
What's wrong with this.ServiceName, if you're inside the service.cs?
i.e.:
protected override void OnStart(string[] args) { Logger.Info($"{this.ServiceName} started on {Environment.MachineName}..."); }