开发者

Pass data from ServiceInstaller class to ServiceBase derived class in C#

开发者 https://www.devze.com 2023-01-08 19:00 出处:网络
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 th

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消