.net - Generate async-only interface from wsdl? -


is there way generate only task based async methods svcutil?

the reason have given wsdls need implement service. easiest way seems to add them service reference , implement generated interface service. works great long stay synchronous async generates 2 methods same operationcontract, invalid.

other ways of fixing dilemma appreciated of course. constraint have stick given wsdl files, can't generate wsdl interface (yay -.-)

regarding duplicate claim: nope. not @ all. played around concurrencymode , task-based services , there huge difference in performance between two. example: shooting 100 threads against either of these implementations,

public async task<someobj> getsomeobj(somereq request) {     await task.delay(1000);     return someobj(); } 

performs better than

public someobj getsomeobj(somereq request) {     thread.sleep(1000);     return new someobj(); } 

no matter concurrencymode selected in servicebehavior (which, funny enough, had little influence on performance).

so question still stands: how generate task-based service contract wsdl, because can show have superior performance (both when comes startup behaviour predictability of runtime performance).


Comments

Popular posts from this blog

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -