Reputation: 15551
I am using prism and have a number of modules. In several of them I am making webservice and wcf calls. I want to be able to configure the information about these services in one place. Should I do this in a resources.resx file? I remember a settings.setting file but that was in a web application.
JD
Upvotes: 2
Views: 328
Reputation: 2372
What you can do is the following:
This way you have based all the WCF connection in one place.
Does it help?
Regards
Upvotes: 0
Reputation: 3617
When you create service reference in a Silverlight Application, it should automatically generate a ServiceReferences.ClientConfig XML file and put it in your project. It will put the binding and endpoint config info in this file. If you create an instance of your service proxy object without specifying any binding/endpoint it will use the info from the file.
Upvotes: 2
Reputation:
You can put it in the app.config or you can follow this blog on passing server information to the Silverlight client.
Silverlight Bits&Pieces has this piece on Silverlight configuration options.
Upvotes: 4