3

Is it possible generate async ServiceOperation only for one method by svcutil?

I know I can add /async parameter but then it generates all methods in async pattern.

Saint
  • 5,397
  • 22
  • 63
  • 107

2 Answers2

4

/async option allows you to generate both synchronous and asynchronous method signatures. Default: generate only synchronous method signatures. There is no possablilty to specify particular contract. But this may be helpful for you

Andriy Zakharko
  • 1,623
  • 2
  • 16
  • 37
  • 1
    I don't see any help under this url. Could you write something more? – Saint Jul 03 '12 at 11:17
  • @Saint article under link shows how to call WCF asynchronously without proxy generation – Andriy Zakharko Jul 03 '12 at 12:25
  • 3
    Note that as of Visual Studio 2012, the default behavior for svcutil appears now to generate both sync and async method signatures. /syncOnly will revert this back to the 'old default'... That wasted three hours of my life this morning. – Chris Ray Mar 06 '13 at 19:07
  • "this" link is dead. 503. – Sean B Jan 29 '18 at 22:36
2

It's not possible. Svcutil can't generate partial asynchronous proxies.

Source

ken2k
  • 48,145
  • 10
  • 116
  • 176