AspNetCoreDiagnosticScenarios icon indicating copy to clipboard operation
AspNetCoreDiagnosticScenarios copied to clipboard

This repository has examples of broken patterns in ASP.NET Core applications

Results 34 AspNetCoreDiagnosticScenarios issues
Sort by recently updated
recently updated
newest added

Filled out the TBD under `ConfigureAwait`. Tried to stick to the formatting, verbiage, and style of the rest of the article. Added examples from ASP.NET Framework.

I copy/pasted the examples and got compiler errors. Then I checked FindAsync signature, and it expects ValueTask instead of Task, so I thought I could update the document, https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.dbcontext.findasync?view=efcore-6.0

Reading the WindowsIdentity.RunImpersonated examples in the AsyncGuidance, there appear to be two errors: 1. Each of the delegates are defined as taking a `context` parameter. However, `RunImpersonated` does not take...

I'm not sure if it may add more confusion than it's worth, but should an exception for a long-running asynchronous process be included for clarity? By long-running async process I...

I would be interested in some guidance how to handle events (e.g. WinForms) where you need to process something and put a value back to the event args (e.g. Cancel...

I wouldn't agree on the statement that async void is evil. There are definitely exceptions where you're fine to use async void. Moreover I'd really appreciate more details on how...

Hi, what's currently the recommended way to run async application initialization in asp.net core and .net core apps based on IGenericHost? Wouldn't it be a nice idea to integrate async...

We often see code like that ```csharp public async Task Get() { await Task.Delay(1000); return View(); } ``` Is it a good practice to add the CancellationToken parameter to actions...

For something like the following: public class QueueProcessor { private readonly BlockingCollection _messageQueue = new BlockingCollection(); public void StartProcessing() { //Start background processing here. What's the best approach? } public...

I think at minimum, this advice should be clarified in two ways: example improved to actually show how a deadlock or other adversity can happen (example just shows when it'll...