C# service location -
I have a service in C #, it uses a config.xml file for configuration. I want to display XML along with the executive service. But I can not seem to understand that where the location of the service extends at the runtime can be obtained, so that I can get / load the config.
Please help.
Another way is, if you are aware of one type in the entry assembly, then use it to get the reference. Assembly: If you just need a path path, use the static method. Turn off topic: Have you built in .NET? I am not saying that it would be better in your specific case, but I think it is advisable to think before rolling up my own configuration structure.
typeof (program). Assembly. Location
Comments
Post a Comment