Check out my web API .net8 full course: (over 14h of content!) fullstackdeveloper.tech/c/web-api-ca
@orhanaliyev9774
8 ай бұрын
regarding the error at 6:38, you can add services.AddProblemDetails(); then you will not need to enter a stub in the form of a lambda and use this class to describe the error var problemDetail = new ProblemDetails {// class fields for the response code, etc. } in the handler itself :) Great video overall, greetings from Azerbaijan
@AzureFullstackDev
8 ай бұрын
thanks for sharing!
@JohnSmith-yr7ih
6 ай бұрын
Thanks! one question from beginer: why do not you use here `ProblemDetails`? Is not it mandatory?
@zulimazuli
9 ай бұрын
Exception handler(s) vs Filters? 🤔
@codeme8016
9 ай бұрын
I didn't understand what the advantages of this approach is over the middleware. Any explanation is appropriated.
@RaZziaN1
9 ай бұрын
it's same as middleware because it uses middleware under the hood. Title is kind of clickbait
@fiacka
8 ай бұрын
Wonderful video! Thanks!!!!
@adamoneil7435
9 ай бұрын
this is really good, thanks
@theMagos
9 ай бұрын
So what if the exception is thrown in the middle of writing the response? Will the response be cleared in favor of the exception response, or will they be merged?
@zipht2490
8 ай бұрын
this is helpful , thanks
@williamliu8985
9 ай бұрын
clear and helpful
@bloopers2967
9 ай бұрын
How you're sending request from inside Visual studio?
@AzureFullstackDev
9 ай бұрын
it's supported for some time now, take a look learn.microsoft.com/en-us/aspnet/core/test/http-files?view=aspnetcore-8.0
@DodgyDev182
9 ай бұрын
Nice one
@user-gt3ld7eu6v
Ай бұрын
You go so fast that we don't have the time to understand
@ammarmasood6976
9 ай бұрын
Please share your api github link pls Btw great explanation 😊
@AzureFullstackDev
9 ай бұрын
here it is: github.com/jakubkozera/RestaurantAPI/tree/net8/exceptionhandler
@pradm777
9 ай бұрын
please share code also
@AzureFullstackDev
9 ай бұрын
here it is: github.com/jakubkozera/RestaurantAPI/tree/net8/exceptionhandler
@pradm777
9 ай бұрын
@@AzureFullstackDev THANKS
@FB-eb6tx
9 ай бұрын
Hey! Thanks for the explanation! I have the same error and you save me :D, very helpful!
@AzureFullstackDev
9 ай бұрын
hopefully Microsoft will fix this, so that one day this workaround will not be needed :p
Пікірлер: 24