I have a new windows service that I am doing in C # 4.0.
I am trying to remove an event registration code that I wrote some time ago that is in a separate class.
I want to set the event source to the name of the Windows service, without changing the code the next time I drop it into the service.
I am looking for something like this:
String source = Application.Name
But I cannot find what I have ever been.
Any members?
source
share