Pass data from ServiceInstaller class to ServiceBase derived class in C#
I currently am passing a string from the command line into my server installer class which I then access using this.Context.Parameters["whatever"]. 开发者_JAVA百科Is there any way I can then pass this string on into my actual service class to be used by it at runtime or do I need to save it to the drive in an ini or add it to the registry and then read it from my service at runtime.
精彩评论