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 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: Passing user identity between endpoints using a custom header • NServiceBus Samples • Particular Docs