Click here to Skip to main content
15,891,951 members
Home / Discussions / C#
   

C#

 
AnswerRe: 405 Error for WebSocket with WSS but not WS (ASP.Net) Pin
OriginalGriff14-Apr-23 6:00
mveOriginalGriff14-Apr-23 6:00 
GeneralRe: 405 Error for WebSocket with WSS but not WS (ASP.Net) Pin
Gwyll14-Apr-23 7:53
Gwyll14-Apr-23 7:53 
GeneralRe: 405 Error for WebSocket with WSS but not WS (ASP.Net) Pin
jschell14-Apr-23 11:38
jschell14-Apr-23 11:38 
AnswerRe: 405 Error for WebSocket with WSS but not WS (ASP.Net) Pin
Gwyll14-Apr-23 12:43
Gwyll14-Apr-23 12:43 
QuestionHow to get XSI:type in inner class while converting to XML Pin
dineshrastogi14-Apr-23 1:42
dineshrastogi14-Apr-23 1:42 
AnswerRe: How to get XSI:type in inner class while converting to XML Pin
Pete O'Hanlon14-Apr-23 2:05
mvePete O'Hanlon14-Apr-23 2:05 
QuestionC# List of Tasks Pin
Kevin Marois6-Apr-23 19:07
professionalKevin Marois6-Apr-23 19:07 
AnswerRe: C# List of Tasks Pin
OriginalGriff6-Apr-23 19:15
mveOriginalGriff6-Apr-23 19:15 
GeneralRe: C# List of Tasks Pin
Kevin Marois6-Apr-23 19:45
professionalKevin Marois6-Apr-23 19:45 
GeneralRe: C# List of Tasks Pin
OriginalGriff6-Apr-23 20:21
mveOriginalGriff6-Apr-23 20:21 
GeneralRe: C# List of Tasks Pin
Kevin Marois6-Apr-23 20:22
professionalKevin Marois6-Apr-23 20:22 
GeneralRe: C# List of Tasks Pin
OriginalGriff6-Apr-23 21:50
mveOriginalGriff6-Apr-23 21:50 
GeneralRe: C# List of Tasks Pin
OriginalGriff6-Apr-23 21:58
mveOriginalGriff6-Apr-23 21:58 
AnswerRe: C# List of Tasks Pin
lmoelleb7-Apr-23 1:54
lmoelleb7-Apr-23 1:54 
AnswerRe: C# List of Tasks Pin
jschell7-Apr-23 9:20
jschell7-Apr-23 9:20 
Kevin Marois wrote:
I want to run a these commands in parallel and get the results as each finishes.


First of course you need to figure out how exactly you are going to collect the results. Additional to that you might also consider what you are going to do with the results.

Collecting the results itself has nothing to do with running them in parallel but it does impact how you encapsulate what it is exactly that you want each 'task' to do.

For example if each task just returned a boolean and you wanted to return that to the caller then you need a structure that holds a boolean and something that tells you which task returned which boolean. It can get way more complicated than that. For example if each one returns data in a different format.

Probably a really good idea also to consider what happens if there is an error. Could be an expected error or an unexpected error.
AnswerRe: C# List of Tasks Pin
Richard Deeming10-Apr-23 21:27
mveRichard Deeming10-Apr-23 21:27 
QuestionPassword Regex Help Pin
Jassim Rahma28-Mar-23 9:41
Jassim Rahma28-Mar-23 9:41 
AnswerRe: Password Regex Help Pin
Dave Kreskowiak28-Mar-23 11:21
mveDave Kreskowiak28-Mar-23 11:21 
AnswerRe: Password Regex Help Pin
OriginalGriff28-Mar-23 19:55
mveOriginalGriff28-Mar-23 19:55 
AnswerRe: Password Regex Help Pin
Eddy Vluggen1-Apr-23 6:31
professionalEddy Vluggen1-Apr-23 6:31 
AnswerRe: Password Regex Help Pin
Member 115612953-Apr-23 23:50
Member 115612953-Apr-23 23:50 
QuestionRe: Password Regex Help Pin
Eddy Vluggen14-Apr-23 6:41
professionalEddy Vluggen14-Apr-23 6:41 
AnswerRe: Password Regex Help Pin
Ravi Bhavnani15-Apr-23 10:52
professionalRavi Bhavnani15-Apr-23 10:52 
AnswerRe: Password Regex Help Pin
Bohdan Stupak19-Apr-23 3:28
professionalBohdan Stupak19-Apr-23 3:28 
Questioncreate our own unit testing framework in C# Pin
Sakhalean26-Mar-23 18:32
Sakhalean26-Mar-23 18:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.