|
Hey Reader, Today, we're diving into webhooks and how to build them with .NET 8, a topic that has intrigued many of you, especially those enrolled in the .NET Web Academy. 🔗 Building Webhooks with .NET 8 on YouTubeIn my newest video, I show you how to set up webhooks using .NET 8. We start with the basics, explaining webhooks as simple ways to make your web apps do more in real-time. I'll walk you through creating a webhook in Visual Studio for a fun project: tracking achievements in video games. 💡 Quick Guide for ReadersIf you prefer a quick read, here's the gist:
🚀 Applying It: Keep Your Services SafeUsing webhooks with API keys lets you safely mix different systems, automate jobs, and make user experiences better across various applications. Setting this up is straightforward with an HTTP header by using a custom X-API-KEY value. Here's a simple way to check this API key in your Web API controller: You could also use middleware to check the API key for every request. If you have questions, feel free to reply to this email. I'm here for more tutorials and to answer any questions. Thanks so much to our community and my Patrons for your support. You are the foundation of this newsletter and my channel. Stay safe, have fun coding, and remember - the best part is creating something new! 💻 Take care, Patrick |
Become a .NET & Blazor expert with weekly tutorials featuring best practices and the latest improvements, right in your inbox.
Hey friend, Quick one today. GitHub Copilot makes form validation feel easy. But if you are not careful, it slowly decides where your logic lives. Your app still works. But the structure gets worse. In today's video, I show you: A simple Blazor register form How Copilot refactors it the wrong way How to move validation out cleanly How to guide Copilot with clear rules Watch the video here 👇 Have a great start to the new year! 🎆 Take care, Patrick P.S. If you want to learn how to use AI as a...
Hey friend, I just released a new video and wanted to share it with you. Watch the video here 👇 I used GitHub Copilot to build a small Blazor weather app. It worked almost instantly and even used real API calls. At first glance, everything looked great. Then I opened the Razor file. All the logic was sitting in one place. UI, API calls, and business logic mixed together. It worked, but it was not something I would ship. In the video, I show how I fix this using a single refactoring prompt. I...
Hey friend, I just released a new video and I think you will enjoy this one. In the video, I ask GitHub Copilot to build a real mortgage app in Blazor. The app works. But the code is messy. All the business logic ends up in the UI. Fast results. Bad structure. Then I clean it up properly. Same behavior. Same output. Much better code using services, interfaces, and dependency injection. It shows why Copilot is powerful, but dangerous without rules. Watch the video here 👇 Enjoy the breakdown...