Click here to Skip to main content
15,797,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can't catch NullReferenceException while explicitly defined for that Pin
Exoskeletor4-Oct-21 1:21
Exoskeletor4-Oct-21 1:21 
Questionhow read file from Open with in C# Pin
Member 1522978130-Sep-21 7:24
Member 1522978130-Sep-21 7:24 
AnswerRe: how read file from Open with in C# Pin
Dave Kreskowiak30-Sep-21 9:08
mveDave Kreskowiak30-Sep-21 9:08 
AnswerRe: how read file from Open with in C# Pin
Luc Pattyn30-Sep-21 9:30
sitebuilderLuc Pattyn30-Sep-21 9:30 
QuestionQuestion About Async Pin
Kevin Marois29-Sep-21 11:21
professionalKevin Marois29-Sep-21 11:21 
AnswerRe: Question About Async Pin
Pete O'Hanlon29-Sep-21 21:22
subeditorPete O'Hanlon29-Sep-21 21:22 
GeneralRe: Question About Async Pin
Kevin Marois30-Sep-21 5:24
professionalKevin Marois30-Sep-21 5:24 
GeneralRe: Question About Async Pin
Richard Deeming30-Sep-21 5:41
mveRichard Deeming30-Sep-21 5:41 
The async-ness of your front-end methods is unrelated to the async-ness of your controller methods. You can have an async front-end method calling a non-async controller method, or a non-async front-end method calling an async controller method.

The front-end code is making a network request. It doesn't know or care how that request was fulfilled. The server could be using a synchronous method, an async method, or waiting for a carrier-pigeon. The front-end just needs to wait for the response.

Having said that, your front-end method should always be async if possible. It's making a network request, so you don't want to block a thread waiting for that to complete.



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

GeneralRe: Question About Async Pin
Kevin Marois30-Sep-21 5:48
professionalKevin Marois30-Sep-21 5:48 
GeneralRe: Question About Async Pin
Richard Deeming30-Sep-21 6:05
mveRichard Deeming30-Sep-21 6:05 
GeneralRe: Question About Async Pin
Kevin Marois30-Sep-21 6:20
professionalKevin Marois30-Sep-21 6:20 
AnswerRe: Question About Async Pin
Richard Deeming29-Sep-21 22:54
mveRichard Deeming29-Sep-21 22:54 
GeneralRe: Question About Async Pin
Kevin Marois30-Sep-21 5:23
professionalKevin Marois30-Sep-21 5:23 
QuestionMakeGenericType/CreateInstance Object to underlying Type at run-time: why this works is driving me crazy Pin
BillWoodruff28-Sep-21 6:45
professionalBillWoodruff28-Sep-21 6:45 
AnswerRe: MakeGenericType/CreateInstance Object to underlying Type at run-time: why this works is driving me crazy Pin
Richard Deeming28-Sep-21 7:20
mveRichard Deeming28-Sep-21 7:20 
GeneralRe: MakeGenericType/CreateInstance Object to underlying Type at run-time: why this works is driving me crazy Pin
BillWoodruff28-Sep-21 10:47
professionalBillWoodruff28-Sep-21 10:47 
AnswerRe: MakeGenericType/CreateInstance Object to underlying Type at run-time: why this works is driving me crazy Pin
OriginalGriff28-Sep-21 7:30
mvaOriginalGriff28-Sep-21 7:30 
GeneralRe: MakeGenericType/CreateInstance Object to underlying Type at run-time: why this works is driving me crazy Pin
BillWoodruff28-Sep-21 11:19
professionalBillWoodruff28-Sep-21 11:19 
GeneralRe: MakeGenericType/CreateInstance Object to underlying Type at run-time: why this works is driving me crazy Pin
OriginalGriff28-Sep-21 11:40
mvaOriginalGriff28-Sep-21 11:40 
GeneralRe: MakeGenericType/CreateInstance Object to underlying Type at run-time: why this works is driving me crazy Pin
BillWoodruff29-Sep-21 1:57
professionalBillWoodruff29-Sep-21 1:57 
Questionled matrix display Pin
Member 1537173026-Sep-21 8:49
Member 1537173026-Sep-21 8:49 
AnswerRe: led matrix display Pin
OriginalGriff26-Sep-21 9:33
mvaOriginalGriff26-Sep-21 9:33 
QuestionC# 8 nullable reference question / conundrum Pin
Super Lloyd25-Sep-21 2:36
Super Lloyd25-Sep-21 2:36 
QuestionConvering time representation format Pin
Alex Dunlop22-Sep-21 0:26
Alex Dunlop22-Sep-21 0:26 
AnswerRe: Convering time representation format Pin
Peter_in_278022-Sep-21 2:28
professionalPeter_in_278022-Sep-21 2:28 

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.