Тэги:
#Web_Development #Azure #Azure_Static_Web_Apps #Static_Web_AppsКомментарии:
Hi Shawn Nice video good example!
Video idea: I constantly see people overusing the dotnet mediator pattern, even for small monolithic apps. I'm not saying never use it, but only use it if you really need the decoupling.
The most common excuse for using it is for unit testing, or "it's best practice." I call BS. Besides, it's a PITA to debug badly written mediator components (for well-structured projects with good naming conventions, it can be less of a pain, though).
I'd like to hear your opinion on that.
.net aspire would be a good one from you shawn
ОтветитьMuch more cleaner than creating your own middleware and try/catch the MoveNext call.
ОтветитьHy Shawn, always like your content, appreciated! As for suggestions: what would be a smart way to implement authorization in Blazor based on the ClientId the user is in combined with his/her role for that client. I guess Policy based authorization with AuthorizationHandler and PolicyHandler would be the one to use (check role) but how to combine specifying checking role and ClientId together? Ideally one would do [Authorize(Roles = "Administrator", ClientId = _clientId)], but the last parameter is not possible (is my fantasy).
ОтветитьShawn , thanks for keeping us put to date is small practical and useful videos. I do not think any anyone has done a good treatment of object cloning, from the simple case to the shared reference case, so many ways to do it, reflection, code generation , Dehydrate - Hydrate, it could be a good series of videos
ОтветитьGreat content Shawn, always joyful to see your content sir. Hope you will cover also new API Identity endpoint. Thanks and God bless :)
ОтветитьThis is great! I can't seem to get this to work in Blazor 8 (mostly InteractiveServer pages). Anyone know if this is supported for Blazor 8?
Also, how does this differ from adding a delegate function (can't get either to work)...
app.UseExceptionHandler(new ExceptionHandlerOptions{
ExceptionHandlingPath = "/Error",
ExceptionHandler = context => GlobalExceptionHandler.HandleException(context),
});
Did not know about this. Thank you Shawn.
Ответитьhow can i run two project of dontnet (asp mvc and api) in same time in vscode?
ОтветитьGreat video. Would love to see you deploy an aspire on a self-hosted environment, such as a raspberry pie and windows server 2016
ОтветитьHopefully it will not throw another exception when you set response status code, I had this experience with old exception handler middleware, sometimes it throws exception when you set the response status code and it says that status is already set or response is already begun.
ОтветитьThanks so much for this. I liked/subscribed and did all the things. You’re doing great work, man.
ОтветитьDude…. Put the camera down step away from the computer and go outside and get some physical activity in. Exceptions don’t mean shit if you are dead.
ОтветитьThanks for bringing this to our attention Shawn. That is nice, but they should have made it an IExceptionHandler<TException> and passed in a strongly typed exception.
Ответитьawesome content
ОтветитьLooks like a good step forward. I've always wanted the try/catch syntax to be stream-lined.
Maybe create a Base class (or decorator) that could handle process/handle most exceptions that would allow a lot of boilerplate exception handling to be moved to another area... idk.
thank you for the video.
Thanks that's was really helpful.
ОтветитьAny Repository related to this video? Thx
ОтветитьCan't wait to upgrade. I have a need for this right now. 👏 Thank you, sir!
ОтветитьThank you Shawn
ОтветитьGreat video Shawn. I was wondering if the code is better using app.UseExceptionHandler("/"); compare to app.UseExceptionHandler(_ => {}); what do you think?
Ответитьhey can you do a quick video of VSCode, .NET MAUI dev with the C# devkit, either you or the legendary Scott Hanselman....please
ОтветитьThank you for explaining this.
So I am assuming we can register multiple exception handlers and if that is the case will they follow any particular execution order like we see for middleware?
One idea I have as I watch this video,
could we somehow add logging in OurExceptionHandler?
Something like ILogger?
Thoughts?
Thanks Mr Shawn for your help with youtub and plurilsigh, please do you have a private learning center where people can change idea and learn ?
ОтветитьI think using the hellangs problem details middleware is more useful for real world exception handling especially when we have to handle specific exceptions.
ОтветитьI like it, thank you.
ОтветитьGreat video Shawn! =)
Ответить