Know Your Toolset
open-menu closeme
Home
About
github twitter linkedin rss
  • 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
  • Creating Useful .NET Templates

    calendar Aug 9, 2021 · 15 min read · .NET ASP.NET C# templates  ·
    Share on: twitter facebook linkedin copy

    tl;dr - just show me the code: https://github.com/dahlsailrunner/knowyourtoolset-templates Templates in .NET are a very helpful feature that enable you to create new files, projects, or even whole solutions with some form of the dotnet new command. I have created and evolved some templates over the past few years and …


    Read More
  • Moving Authentication From an ASP.NET Site Into IdentityServer4

    calendar Nov 5, 2020 · 6 min read · IdentityServer ASP.NET .NET ASP.NET Identity Authentication  ·
    Share on: twitter facebook linkedin copy
    Moving Authentication From an ASP.NET Site Into IdentityServer4

    tl;dr: Just show me the code: https://github.com/dahlsailrunner/secure-authentication-is4 I just published a course regarding secure authentication in ASP.NET websites, and the course and its code repo focused exclusively on ASP.NET Identity (in both Core and Framework projects). An early question came up regarding how …


    Read More
  • A (Fairly) Deep Dive Into ASP.NET Identity and 10+ 'Nuggets'

    calendar Nov 4, 2020 · 3 min read · ASP.NET ASP.NET Identity Authentication  ·
    Share on: twitter facebook linkedin copy

    I just recently had the privilege of creating a new course for Pluralsight called Secure User Account and Authentication Practices in ASP.NET and ASP.NET Core, and it brought me down a path that involved a lot of exploration around how identity works in ASP.NET (and Core — I’ll just use "ASP.NET" going …


    Read More
  • Updating an ASP.NET Core 2.2 Solution That Integrates With IdentityServer4

    calendar Jul 17, 2020 · 4 min read · IdentityServer ASP.NET  ·
    Share on: twitter facebook linkedin copy

    Background The very useful public demo of IdentityServer4 recently changed to limit the different flows that it supports based on updated recommendations: https://leastprivilege.com/2019/09/09/two-is-the-magic-number/ I had an existing solution written in .NET Core 2.2 that needed to get updated to support these new …


    Read More
  • Comparing OpenAPI / Swagger, GraphQL, and gRPC

    calendar Mar 20, 2020 · 7 min read · ASP.NET API  ·
    Share on: twitter facebook linkedin copy
    Comparing OpenAPI / Swagger, GraphQL, and gRPC

    I’ve been preparing for a talk at Twin Cities Code Camp 2020 which will compare and contrast the more common and traditional OpenAPI or Swagger APIs (sometimes called REST APIs in a generally-accepted loose interpretation of the term) and the newer kids on the block: GraphQL and gRPC. Most of us are probably familiar …


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

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