Click here to Skip to main content
14,382,525 members
   

C#

 
GeneralRe: DAL Exception Handling Pin
OriginalGriff15-Nov-19 7:19
protectorOriginalGriff15-Nov-19 7:19 
GeneralRe: DAL Exception Handling Pin
Pete O'Hanlon18-Nov-19 5:43
protectorPete O'Hanlon18-Nov-19 5:43 
AnswerRe: DAL Exception Handling Pin
Gerry Schmitz15-Nov-19 6:21
mveGerry Schmitz15-Nov-19 6:21 
GeneralRe: DAL Exception Handling Pin
Kevin Marois15-Nov-19 6:59
professionalKevin Marois15-Nov-19 6:59 
GeneralRe: DAL Exception Handling Pin
Gerry Schmitz16-Nov-19 3:45
mveGerry Schmitz16-Nov-19 3:45 
SuggestionRe: DAL Exception Handling Pin
Richard Deeming15-Nov-19 6:29
mveRichard Deeming15-Nov-19 6:29 
GeneralRe: DAL Exception Handling Pin
Kevin Marois15-Nov-19 6:55
professionalKevin Marois15-Nov-19 6:55 
GeneralRe: DAL Exception Handling Pin
Richard Deeming15-Nov-19 7:43
mveRichard Deeming15-Nov-19 7:43 
The code I posted will push the IBizObj onto a background thread. When it completes, the method will result on the UI thread to run the UserList.Add code. There's no need to use ContinueWith here.

Ideally, your method should return a Task. If you want it to be a "fire and forget" call, assign the returned task to a discard variable:
_ = AddUser();
That way, any unhandled exceptions will raise the TaskScheduler.UnobservedTaskException[^] event.

With an async void method, any unhandled exceptions could bring down the entire process.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

QuestionLINQ sort and group dates by month and day, ignore year Pin
Mc_Topaz15-Nov-19 1:38
memberMc_Topaz15-Nov-19 1:38 
AnswerRe: LINQ sort and group dates by month and day, ignore year Pin
Richard Deeming15-Nov-19 2:28
mveRichard Deeming15-Nov-19 2:28 
GeneralRe: LINQ sort and group dates by month and day, ignore year Pin
Mc_Topaz15-Nov-19 3:38
memberMc_Topaz15-Nov-19 3:38 
QuestionDispose a Tooltip Pin
ConnerMcLoud15-Nov-19 1:32
memberConnerMcLoud15-Nov-19 1:32 
AnswerRe: Dispose a Tooltip Pin
OriginalGriff15-Nov-19 3:25
protectorOriginalGriff15-Nov-19 3:25 
AnswerRe: Dispose a Tooltip Pin
Gerry Schmitz15-Nov-19 6:41
mveGerry Schmitz15-Nov-19 6:41 
AnswerRe: Dispose a Tooltip Pin
Luc Pattyn15-Nov-19 7:22
professionalLuc Pattyn15-Nov-19 7:22 
QuestionType Overflow... Pin
Bernhard Hiller15-Nov-19 1:02
memberBernhard Hiller15-Nov-19 1:02 
AnswerRe: Type Overflow... Pin
phil.o15-Nov-19 1:46
mvephil.o15-Nov-19 1:46 
GeneralRe: Type Overflow... Pin
Bernhard Hiller15-Nov-19 1:49
memberBernhard Hiller15-Nov-19 1:49 
AnswerRe: Type Overflow... Pin
Richard Deeming15-Nov-19 2:20
mveRichard Deeming15-Nov-19 2:20 
GeneralRe: Type Overflow... Pin
Bernhard Hiller15-Nov-19 5:55
memberBernhard Hiller15-Nov-19 5:55 
QuestionAdding panels dynamically through user input Pin
jacko112313-Nov-19 2:34
memberjacko112313-Nov-19 2:34 
AnswerRe: Adding panels dynamically through user input Pin
OriginalGriff13-Nov-19 2:45
protectorOriginalGriff13-Nov-19 2:45 
GeneralRe: Adding panels dynamically through user input Pin
jacko112313-Nov-19 3:20
memberjacko112313-Nov-19 3:20 
SuggestionRe: Adding panels dynamically through user input Pin
Richard Deeming13-Nov-19 2:58
mveRichard Deeming13-Nov-19 2:58 
GeneralRe: Adding panels dynamically through user input Pin
jacko112313-Nov-19 3:19
memberjacko112313-Nov-19 3:19 

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.