Open Closed

How to Access CurrentUser Id in domain without asking application layer ? #6086


User avatar
0
sukhdeep.dhillon created
  • ABP Framework version: v7.2.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)

Hi, I know we shouldn't add ICurrentUser in domain layer because domain layer should be independent of current user. but I have some logic in the domain which I don't want to expose to the outer layer but I need current user Id for that logic. how can I handle this.

is that okay to access ICurrentUser in domain manager?


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    It's ok

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35