Questions tagged [parallel.invoke]

19 questions
0
votes
2 answers

Use 1 DataReader For Multiple Database Calls

I am just learning to use Parallel.Invoke() and am trying to wrap my mind around returning multiple DataSets() For example, let's take the sample syntax below - how could I use the method ExecuteSqlQuery() for each one of the 3 DataSets() I need…
RashidInman
  • 67
  • 1
  • 7
-1
votes
1 answer

Async vs Parallel.Invoke vs Task.WhenAll for EntityF6 query that gets data, in ASP MVC 5 web app

I'm trying to figure what is the best approach, apart of synchronous programming, for doing some EF6 queries that retrieve data. I'll post here all 5 methods(these take place in a Controller Action ): //would it be better to not "async" the…
sTx
  • 1,213
  • 13
  • 32
-1
votes
1 answer

c# Parallel.Invoke vs Parallel.ForEach - process data source and modify it in parallel

Can somebody explain what path to use Paralle.Invoke or Parallel.ForEach in this scenario: - query large data from database let's say 1000 records - parallel process this data, save the records back to db, eventually insert new records etc So the…
-1
votes
1 answer

I have to call multiple different web services in parallel using C#

I have a requirement where I need to send multiple parallel calls to different web services hosted on different servers. I have to read a configuration file to know how many times the call has to be made. Let say there are 4 servers and on each…
1
2