c# - Best approach for multiple WCF requests -


I have a method that receives an array of productIds and with them I want to get a date for every one The requirement is that the service is only able to give me a date for each product. I have no access to the service ... only what code is a better way of clapping the client?

  ChannelFinance  ("EndpenName")} {client = channelFactory.CreateChannel (); Request request = new request (); Request.Id = Product ID [i]; Feedback feedback = client.execute (request); Dates.Add (response.Date); }}  

It seems that you do not need to create a channel on each walk, Just before the loop, you can also try to parallel the flow: svcutil can generate work-based ASINC functions, I believe that there is something similar in the channel factory but I am afraid that the proper server-side It is not possible to reduce the amount of service calls without support.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -