Skip to content

Any examples in projects with multiple layers? #553

You must be logged in to vote

I managed to resolve.

I shared my IHttpContextAcessor through a CrossCutting layer and then I can get the audit scope through the command below.

ApiControllerExtensions.GetCurrentAuditScope(contextAccessor.HttpContext)

I'm going to implement an abstraction for this right in the dependency injection.

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by thepirat000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant