return a Task of generic list

  • Thread starter Thread starter The real Slartibartfast
  • Start date Start date
T

The real Slartibartfast

Guest
Hello,

Struggling to get the syntax right for this method which needs to return a List<Task<T>>. I have the syntax correct in a couple of private methods in the same class but I cannot seem to get it right for the ProcessAPIs method. (I know, I'm going to rename that method...).

So this method (ProcessAPIs) needs to return List<Workload> or List<Event> and several other List<T> going forward.

I have tried Task<IEnumerable<T>> and Task<List<T>>

1564864.png

I commented out the code that calls this until I can get the return type sorted.

Be great if someone could point out what I have missed or any other observations on the code as I'm new to generics and async programming.

Thanks in advance.


1564863.png

Continue reading...
 

Similar threads

C
Replies
0
Views
88
Craig Muckleston (MCPD, MCTS)
C
N
Replies
0
Views
102
neonash
N
Back
Top