You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// RDVS: Rider's completion doesn't expect an identifier after the async keyword, so it starts to suggest weird classes,
35
+
// and this is where completion on space hurts: I wanted to type "context" but completion triggered on Space and inserted the unwanted ContextBoundObject
36
+
returnasync context =>
37
+
{
38
+
// RDVS: again bad completion on unresolved symbol: wanted to use undeclared "logger" to add it as parameter later, but got Logger<> completed instead
// RDVS: VS completion breaks down after the await keyword - no longer suggests anything. Workaround: type a sync statement first, then add the "await" keyword
37
+
// Rider handles this just fine.
38
+
awaitcontext.Response.WriteAsync("Hit!!!");
39
+
logger.LogInformation("Request handled");
40
+
}
41
+
else
42
+
{
43
+
awaitnext(context);
44
+
logger.LogInformation("Response outgoing");
45
+
}
46
+
47
+
};
48
+
});
27
49
50
+
app.UseWelcomePage(newWelcomePageOptions{
51
+
Path="/wp"
52
+
});
53
+
28
54
app.Run(async(context)=>
29
55
{
30
56
// Configuration sources by descending priority: 1. command-line parameter, 2. environment variable, 3. appsettings.json (enables storing dev settings in appsettings.json and overriding them in production wtih environment variables for example)
0 commit comments