.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

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -