Click here to Skip to main content
15,881,281 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

Generate Async ServiceContract automatically for your Silverlight projects

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
22 Nov 2011CPOL 7.1K   1
I don't get it. Why would one need such a workaround if VS has a built-in Service Reference generator which works and automatically generates required contracts for Silverlight? I've always used it and it has been enough.Just right-click the Silverlight project node in Solution Explorer,...

I don't get it. Why would one need such a workaround if VS has a built-in Service Reference generator which works and automatically generates required contracts for Silverlight? I've always used it and it has been enough.


Just right-click the Silverlight project node in Solution Explorer, select 'Add Service Reference', and follow the wizard steps to get all you need.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
The MS Team, LLC.
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralHi GATzilla, In my case, I never use the wizard and always u... Pin
Nicolas Dorier21-Nov-11 22:26
professionalNicolas Dorier21-Nov-11 22:26 
Hi GATzilla,
In my case, I never use the wizard and always use ChannelFactory<t> class (except if I use an external service). This way, I don't have to think to regenerate proxies with Visual studio every time I change the service definition or a DataContract definition, it is always in sync. The proxy generation of Visual studio is great for external services since they don t change frequently. But I hate having to run the wizard everytime I make a change to a contract. Anyway, good observation I accept the alternative since I should have talked about it.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.