Know Your Toolset
open-menu closeme
Home
About
github twitter linkedin rss
  • Logging Updates in .NET 8 and ASP.NET 8

    calendar Nov 21, 2023 · 4 min read · C# API ASP.NET Logging  ·
    Share on: twitter facebook linkedin copy

    The recent release of .NET 8 has occurred and as I was updating my Pluralsight course on Logging and Monitoring in ASP.NET Core, I thought it would also be useful to write a post about some of the nice new goodness related to logging and monitoring. Everything that you had in place for recent versions of .NET and …


    Read More
  • Using the System.CommandLine Package to Create Great CLI Programs

    calendar May 6, 2023 · 8 min read · C# System.CommandLine NBomber  ·
    Share on: twitter facebook linkedin copy
    Using the System.CommandLine Package to Create Great CLI Programs

    Problem Statement A recent blog post of mine showed a significant performance difference between an async API method and a synchronous one. The performance test was generating 100 new requests each second for 30 seconds, making a total of 3,000 requests. The async code behaved much better under this load, but at what …


    Read More
  • Cancellation Tokens in ASP.NET APIs

    calendar May 4, 2023 · 5 min read · C# ASP.NET  ·
    Share on: twitter facebook linkedin copy

    Background If you're just looking for the code, it's here: https://github.com/dahlsailrunner/async-vs-sync The most recent post I did was all about the improvements that asynchronous code can provide a website when it experiences higher load levels. That led to the notion of cancellation tokens, which I was initially …


    Read More
  • Async Versus Sync Code in ASP.NET APIs

    calendar May 1, 2023 · 4 min read · C# ASP.NET NBomber  ·
    Share on: twitter facebook linkedin copy

    Background If you're just looking for the code, it's here: https://github.com/dahlsailrunner/async-vs-sync I have recently been doing more work relative to performance, and one of the things I wanted to more specifically test and quantify with concrete results was differences between async and synchronous code (I'll …


    Read More
  • Using Tuples with Dapper

    calendar Apr 16, 2023 · 3 min read · C# ASP.NET Dapper SQLite  ·
    Share on: twitter facebook linkedin copy
    Using Tuples with Dapper

    Summary Using tuples with Dapper for simple query results can avoid the need to create classes or records that might otherwise bloat your code-base. Here's a sample repo: https://github.com/dahlsailrunner/tuple-with-dapper Background When you have an existing database or management practices that don't involve Entity …


    Read More
  • Using Serilog Logging for LaunchDarkly

    calendar Apr 8, 2023 · 3 min read · C# ASP.NET LaunchDarkly Serilog  ·
    Share on: twitter facebook linkedin copy
    Using Serilog Logging for LaunchDarkly

    Background I was recently trying to get LaunchDarkly to write its logs using our standard logging configuration - which is Serilog on top of Microsoft.Extensions.Logging. According to the LaunchDarkly docs, this was pretty straight-forward but it turned out to be trickier than I thought. The solution involved getting …


    Read More
  • Using Generics and Interfaces to Simplify C# Code

    calendar Feb 3, 2023 · 5 min read · C# ASP.NET  ·
    Share on: twitter facebook linkedin copy

    Background If you're working in .NET or other languages that support interfaces and generics, you've probably used them. Finding reasons to create them can be more challenging, but I recently came across two completely different instances that clearly benefited from the interface / generic combo and thought they would …


    Read More
  • Kubeconfig files for Multiple Kubernetes Clusters

    calendar Nov 4, 2022 · 4 min read · Kubernetes  ·
    Share on: twitter facebook linkedin copy
    Kubeconfig files for Multiple Kubernetes Clusters

    Background If you're working with Kubernetes at all, you may be needing to interact with more than one cluster - maybe different clusters for development and production, maybe different applications, or whatever. Each cluster probably has a kubeconfig file that you can use to interact with that cluster, but changing …


    Read More
  • ASP.NET Core APIs: Getting Swashbuckle to work with Auth0

    calendar Jul 4, 2022 · 7 min read · ASP.NET Core API JWT OAuth2 Swagger Swashbuckle Auth0  ·
    Share on: twitter facebook linkedin copy
    ASP.NET Core APIs: Getting Swashbuckle to work with Auth0

    Background Using JWT bearer token authentication for your ASP.NET Core API projects is pretty standard stuff these days, and I've done it many times - mostly with tokens from Duende IdentityServer. When I tried to update the code and configuration to use Auth0 though, I kept getting a 401 response after authenticating …


    Read More
  • Migrating My Blog to Hugo and Azure

    calendar Aug 13, 2021 · 7 min read · Hugo Blogging Azure  ·
    Share on: twitter facebook linkedin copy
    Migrating My Blog to Hugo and Azure

    Background In 2015 (6 years ago now!), I created my blog on GoDaddy using their "Managed WordPress" service. I also created a domain with them and added an SSL certificate. I'm a developer/architect and don't do anything with WordPress during my day job. I write a lot of markdown docs for README files and …


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • 5
    • »
    • »»

Erik Dahl photo

Erik Dahl

Technologist, lifelong learner, Microsoft MVP, Pluralsight author, seeker of continuous incremental improvement.
Read More

Featured Posts

  • Hello, AI World and Streaming Content Between ASP.NET APIs and Angular
  • .NET Templates with Optional Content
  • Creating Useful .NET Templates
  • Add K8s Cluster to Windows Terminal
  • Moving Authentication From an ASP.NET Site Into IdentityServer4
  • Comparing OpenAPI / Swagger, GraphQL, and gRPC
  • Guiding Principles for Programmers

Recent Posts

  • Hello, AI World and Streaming Content Between ASP.NET APIs and Angular
  • .NET Templates with Optional Content
  • Using Shared Logging Levels with .NET Aspire
  • A Great Prompt Experience
  • Visual Studio Tips and Tricks
  • Using WireMock in Integration Tests for ASP.NET Core APIs
  • Code Coverage Reports for .NET Projects
  • Integration Testing for ASP.NET APIs (3/3) - Auth

Tags

ASP.NET 26 C# 21 API 12 .NET 8 OAUTH2 6 TESTING 5 XUNIT 5 ADO.NET 3 ASPIRE 3 AUTHENTICATION 3 DEVELOPMENT 3 ASP.NET-IDENTITY 2 AUDIO 2 AZURE-DEVOPS 2
All Tags
.NET8 ADO.NET3 ANALYTICS1 ANGULAR1 API12 ASP.NET26 ASP.NET-CORE1 ASP.NET-IDENTITY2 ASPIRE3 AUDIO2 AUTH01 AUTHENTICATION3 AZURE1 AZURE-DEVOPS2 AZURE-OPENAI1 BFF2 BLOGGING2 BOGUS2 C#21 CAMTASIA2 CODE-COVERAGE1 COVERLET1 DAPPER1 DEVELOPMENT3 DOCUMENTATION1 DUENDE-SOFTWARE2 ELK1 FETCH-API1 FLUENTVALIDATION1 GITHUB-ACTIONS1 HUGO1 ICONS1 IDENTITYSERVER2 JWT1 KENDO-UI2 KIDS1 KUBERNETES2 LAUNCHDARKLY1 LOGGING2 NBOMBER2 NERD-FONTS1 OAUTH26 OH-MY-POSH2 OIDC1 OPEN-TELEMETRY1 OPENAI1 PI-SENSE-HAT1 POSTGRES1 POSTGRESQL1 RASBERRYPI1 READ-THE-DOCS1 SERILOG1 SQL2 SQL-SERVER1 SQLITE2 SWAGGER1 SWASHBUCKLE1 SYSTEM.COMMANDLINE1 TEMPLATES2 TESTCONTAINERS1 TESTING5 TYPESCRIPT2 VIDEOS1 VISUAL-STUDIO1 WINDOWS-TERMINAL1 WIREMOCK1 XUNIT5
[A~Z][0~9]
Know Your Toolset

Copyright 2015-  KNOW YOUR TOOLSET. All Rights Reserved

to-top