.net core console app Thread.CurrentPrincipal

I have a .net core console app and would like to set Thread.CurrentPrincipal in a mutator.

What are the best practices of using Thread.CurrentPrincipal in a .net core console app

I don’t think there’s anything specific to NServiceBus that you’d have to watch out for, but we do have a sample showing how to set the current principal within a mutator: https://docs.particular.net/samples/username-header/