0

In the enterprise environment we have a lot of windows programs and local WCF services. Programs are really light, they don't connect to the database directly, they use services. The problem is, that every time a program needs to use the service, it has to create a Proxy class, configure the config etc.

Better approach is to make services discoverable, so that you can add them via "service reference". Then the client will be created automatically. The problem is that you don't know if/when the service changes.

What do you think about creating a Proxy class manually and adding it to the nuget (our company local nuget)? When you install it, the app.config would be changed too. Proxy will dispose the service too. So all you need to do is to add it and use it. What do you think about it?

Thanks for help

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.