Tag: General
All the articles with the tag "General".
- Mastodon on your own domain without hosting a server Get a Mastodon address on your own domain without hosting a server: serve WebFinger JSON on your domain and it resolves to your existing account.
- Fix CS8618 Nullable Warnings in C# JSON Models Fix CS8618 non-nullable property warnings in C# JSON DTOs: compare nullable properties, constructors, default values and required, and why default! is risky.
- Run a .NET App as a Linux Service with systemd Run a .NET app as a Linux service: add Microsoft.Extensions.Hosting.Systemd, call UseSystemd(), write a Type=notify unit file, and read logs via journald.
- Rate limiting in ASP.NET Core: a practical guide (updated for .NET 10) A practical guide to the ASP.NET Core rate limiting middleware: fixed window, sliding window, token bucket and concurrency limiters, per-IP limits, and returning a 429.
- Using ASP.NET Core Passkeys for Second Factor Authentication Use passkeys as a second factor after password login in ASP.NET Core Identity on .NET 10, with a 2FA token provider and two endpoints to create and verify.
- Building a Supply Chain Attack with .NET and NuGet A story of building a supply chain attack with .NET and NuGet: package name spoofing, module initializers, source generators and MSBuild targets, and how to defend.
- Hosting the .NET Aspire Dashboard as a Standalone Container in Azure Web Apps Run the .NET Aspire dashboard as a standalone container in Azure Web Apps to view OpenTelemetry traces, metrics and logs, including the HTTP/2 and gRPC setup.
- Keyed Services (Named registrations) in .NET Service Provider Keyed services in .NET 8 let you register several implementations of one interface under a key, and inject the right one without factories or switch statements.
- So, I wrote a fiction book. Meet "The Side Project". I wrote a fiction novel called The Side Project. Why I moved from technical writing to fiction, how I started, and the tools and structure that helped.
- TimeProvider and the End of Untestable DateTime.Now DateTime.Now is hard to test. Since .NET 8, TimeProvider replaces your own clock wrapper: how to inject it and control time in tests with FakeTimeProvider.