Premium Only Content

API Error Handling with Result Pattern in C# .NET
Instead of throwing custom exceptions and handle those globally, let's try an alternative approach that return success or failure results explicitly for our C# .NET APIs.
Find the code: https://www.patreon.com/posts/api-error-with-c-96007416
More code: https://www.kiss-code.com/products
00:00 Intro
00:44 Why to pick which?
02:00 Sources
02:30 Exception Handling Recap
04:30 Error Objects
11:52 Return Results
15:07 Handle Results
20:00 Result Extension
21:55 Final Thoughts
22:56 Outro
#exceptions #dotnet #csharp #webapi #serilog #logging #monitoring #api #webdevelopment #fullstack #fullstacksoftwareengineering #backend #docker #azure #containerization #devops #cloud #microsoft #entityframework #identityframework #mssqlserver #mssql #cleanarchitecture #authentication #api #development #local #web #authorization #jwt #bearer #cqrs #mediatr #webapi #cors #http #stateless #webscraping #workers #migration #modular #monolith #verticalslicearchitecture #minimalapi #ratelimit #origin #host #result #pattern
-
1:45:16
Redacted News
2 hours agoTrump issues Ultimatum to Putin "End this war now or else," Russia not backing down | Redacted Live
101K62 -
LIVE
Michael Franzese
1 hour agoBillionaire Insider Exposes Epstein’s Real Blackmail Operation
723 watching -
46:12
Candace Show Podcast
2 hours agoBrigitte Presents “Proof” Her Brother Is Alive. | Candace Ep 221
21.9K69 -
LIVE
Robert Gouveia
1 hour ago'Missing Minute' is GONE! New IMMUNITY Demands! Obama's PLOT! Schiff in TROUBLE!
476 watching -
11:35
Tactical Advisor
2 days agoAnother Sig Trigger Fail | P320 P365 and X Macro
35 -
7:34
Michael Button
8 hours ago $0.01 earnedWhy I Left Academia to Explore Lost Civilizations
1332 -
Sarah Westall
1 hour agoNEW STUDY RESULTS: Humans have MAC ID Chips – How Did They Get There? w/ Hazen and Mansfield
2.89K2 -
2:03:53
Pop Culture Crisis
3 hours agoBillie Eilish & Sydney Sweeney Blamed For 'Whiteness', Millennials WORRIED About Gen Z | Ep. 887
18K10 -
2:19:34
ZiggySalvation
2 hours agoCoD HC Time
1.7K -
LIVE
Spartan
2 hours agoSpartan - Pro Halo Player for OMiT | Scrims vs C9, Maybe Ranked after
72 watching