Creating an extension method for attaching key-value pairs to scope state using ASP.NET Core

added by DotNetKicks
9/19/2017 11:29:20 AM

2 Kicks, 175 Views

This is the first in a short series of posts exploring the process I went through to make working with scopes a little nicer in ASP.NET Core (and Serilog / Seq). In this post I'll create an extension method for logging a single key-value pair as a scope.