Click here to Skip to main content
15,796,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: Write Async Method Pin
Pete O'Hanlon27-Jan-21 22:28
subeditorPete O'Hanlon27-Jan-21 22:28 
GeneralRe: Write Async Method Pin
Victor Nijegorodov27-Jan-21 23:35
Victor Nijegorodov27-Jan-21 23:35 
GeneralRe: Write Async Method Pin
Gerry Schmitz28-Jan-21 15:57
mveGerry Schmitz28-Jan-21 15:57 
AnswerRe: Write Async Method Pin
Richard Deeming27-Jan-21 22:46
mveRichard Deeming27-Jan-21 22:46 
GeneralRe: Write Async Method Pin
Kevin Marois28-Jan-21 7:27
professionalKevin Marois28-Jan-21 7:27 
GeneralRe: Write Async Method Pin
Kevin Marois28-Jan-21 8:53
professionalKevin Marois28-Jan-21 8:53 
GeneralRe: Write Async Method Pin
Richard Deeming28-Jan-21 23:10
mveRichard Deeming28-Jan-21 23:10 
GeneralRe: Write Async Method Pin
Kevin Marois29-Jan-21 10:12
professionalKevin Marois29-Jan-21 10:12 
Richard Deeming wrote:
Not really. Spinning up a new Task and awaiting it is only really useful if you want to move the processing onto a background thread. On the server, that doesn't make any sense.

OK, so what would the server methood look like? I'm a bit confused

In that Fowler article, he has this example:
public async Task<int> DoSomethingAsync()
{
    var result = await CallDependencyAsync();
    return result + 1;
}
I thought that the server method had to return a task to make it Async?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.


modified 29-Jan-21 18:12pm.

GeneralRe: Write Async Method Pin
Richard Deeming31-Jan-21 23:05
mveRichard Deeming31-Jan-21 23:05 
GeneralRe: Write Async Method Pin
Kevin Marois31-Jan-21 23:36
professionalKevin Marois31-Jan-21 23:36 
GeneralRe: Write Async Method Pin
Richard Deeming1-Feb-21 1:02
mveRichard Deeming1-Feb-21 1:02 
GeneralRe: Write Async Method Pin
Kevin Marois1-Feb-21 9:36
professionalKevin Marois1-Feb-21 9:36 
GeneralRe: Write Async Method Pin
Richard Deeming1-Feb-21 22:20
mveRichard Deeming1-Feb-21 22:20 
QuestionHow to update members of a List using Linq? [Solved] Pin
Alex Dunlop27-Jan-21 0:54
Alex Dunlop27-Jan-21 0:54 
AnswerRe: How to update members of a List using Linq? Pin
OriginalGriff27-Jan-21 1:15
mvaOriginalGriff27-Jan-21 1:15 
GeneralRe: How to update members of a List using Linq? Pin
Alex Dunlop27-Jan-21 3:15
Alex Dunlop27-Jan-21 3:15 
GeneralRe: How to update members of a List using Linq? Pin
OriginalGriff27-Jan-21 3:36
mvaOriginalGriff27-Jan-21 3:36 
GeneralRe: How to update members of a List using Linq? Pin
Alex Dunlop27-Jan-21 4:04
Alex Dunlop27-Jan-21 4:04 
GeneralRe: How to update members of a List using Linq? Pin
Richard Deeming27-Jan-21 5:10
mveRichard Deeming27-Jan-21 5:10 
GeneralRe: How to update members of a List using Linq? Pin
Dave Kreskowiak27-Jan-21 8:06
mveDave Kreskowiak27-Jan-21 8:06 
QuestionProper event handling in docked window schema Pin
gizbernus26-Jan-21 10:16
gizbernus26-Jan-21 10:16 
Questionalias names for Column in Linq Pin
simpledeveloper25-Jan-21 9:28
simpledeveloper25-Jan-21 9:28 
AnswerRe: alias names for Column in Linq Pin
Gerry Schmitz25-Jan-21 11:18
mveGerry Schmitz25-Jan-21 11:18 
AnswerRe: alias names for Column in Linq Pin
Richard Deeming25-Jan-21 22:38
mveRichard Deeming25-Jan-21 22:38 
Questionhow to print POS bills with a thermal printer Pin
Meax24-Jan-21 9:53
Meax24-Jan-21 9:53 

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.