Home Why WCF's autogenerated proxies have sync method?
Reply: 0

Why WCF's autogenerated proxies have sync method?

user551 Published in June 20, 2018, 12:05 am

I implemented async WCF service MyServiceAsync. In the client when I add Service Reference it still generates the sync (normal) version of this function. It doesn't even return the Task and the name is MyService. Am I missing something?

I had sync version before, I recently changed to async. Are those leftovers from my previous service or does VS auto generate both sync and async?

And the follow up question, if so.. can I prevent from generating sync version?


You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.313305 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO