Change the ServiceLifetime after the service has been added to the .NET ServiceCollection
Learn how to change the lifetime of services already added to a service collection.
How to build a URL Shortener with C# .NET and Redis
Learn how to build a link shortener using C#, .NET, and Redis. You'll be using ASP.NET Core to build the URL forwarder and the System.CommandLine libraries to manage the data.
Use XML Literals in Visual Basic .NET to generate TwiML
Learn how to generate TwiML instructions to respond to texts and voice calls using XML Literals in Visual Basic .NET and ASP.NET Core Minimal APIs.
Use Raw String Literals to generate TwiML in C# 11
Learn how Twilio uses webhooks and TwiML to give you control over how to respond to a call or text message. You can generate TwiML in many ways, and with C# 11 you can now also use Raw String Literals.
Use Visual Studio dev tunnels to handle Twilio Webhooks
Learn how to develop webhooks on your local machine using Visual Studio dev tunnels and ASP.NET Core.
How to create an ASP.NET Core Minimal API with Visual Basic .NET (there's no template)
Visual Basic .NET (VB) is not dead, but it's not getting the same amount of love as C# or even F#. Luckily, all that is .NET can be used by all .NET languages including VB, so you can still use ASP.NET Core and Minimal APIs with the VB language.
Find your US Representatives and Congressional Districts with SMS and ASP.NET Core
Learn how to create an SMS bot that looks up U.S. Congressional Districts and Representatives using the Google Civic Information API, C#, ASP.NET Core Minimal API, and Twilio SMS.
How to get the full public URL of ASP.NET Core
Learn how to get the public full URL of your ASP.NET Core application
How to generate absolute URLs in ASP.NET Core
Learn how to generate full absolute URLs in C# and ASP.NET Core web applications.
What's new in the Twilio helper library for ASP.NET (v5.73.0 - April 2022)
Learn about what's new and old with the Twilio helper library for ASP.NET in version 5.73.0
Integrate ngrok into ASP.NET Core startup and automatically update your webhook URLs
Learn to integrate ngrok into ASP.NET Core's startup process to create secure public tunnels and automatically handle Twilio's webhooks with a single command
How to get ASP.NET Core's local server URLs
Learn how to access the ASP.NET Core's local server URLs in Program.cs, in controllers using Dependency Injection, and in IHostedService or BackgroundService.
How to run Umbraco 9 as a Linux Docker container
Umbraco 9 has been built on top of .NET 5. As a result, you can now containerize your Umbraco 9 websites in Linux containers. Learn how to containerize Umbraco 9 with Docker.
Deploying Umbraco 9 to Azure App Service for Linux
Learn how to create the Azure infrastructure using the Azure CLI to host an Umbraco 9 website using Azure SQL and Azure App Service for Linux, and how to deploy your Umbraco 9 site.
Thoughts and tips on moving to Umbraco 9 from Umbraco 8
.NET Core was a groundbreaking change to the .NET platform. It is blazing fast, open-source, and cross-platform across Windows, Linux, and macOS. With Umbraco 9, we finally get to enjoy all the new innovations from .NET Core. Read about my experience upgrading an Umbraco 8 website to Umbraco 9.
Guest on .NET Docs Show: Making Phone Calls 📞 from Blazor WebAssembly with Twilio Voice
Earlier this week, the folks at the .NET Docs Show invited me over to talk about Twilio, .NET, and Blazor WebAssembly. We discussed different architectures, workflow diagrams, Twilio capabilities, and how to integrate them using ASP.NET WebAPI's and Blazor WebAssembly.
How to bypass Captchas in Selenium UI tests
Captchas are often used as a way to combat spam on website forms. Unfortunately, this also makes it harder to verify the functionality of the forms using UI tests like Selenium. To work around this you can extend your website with a bypass form.
Capture emails during development using smtp4dev and UI Test with Selenium
You can use smtp4dev during development to prevent emails from going out to real customers. This tool also supports IMAP which you can use to query emails for automated testing.
Create ZIP files on HTTP request without intermediate files using ASP.NET Core MVC, Razor Pages, and endpoints
The ZipArchive wraps any stream to read, create, and update ZIP archives. You can send the result to the client using ASP.NET MVC, Razor Pages, and endpoints.
Use project Tye to host Blazor WASM and ASP.NET Web API on a single origin to avoid CORS
Using Microsoft's experimental Project Tye, you configured the proxy to forward requests to '/api' to the Web API, and all other requests to the Blazor WASM client.