Ouvert Fermé

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


User avatar
0
sukhdeep.dhillon créé
  • 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 Réponse (s)
  • User Avatar
    0
    liangshiwei créé
    Équipe d'assistance Fullstack Developer

    Hi,

    It's ok

Made with ❤️ on ABP v8.2.0-preview Updated on mars 25, 2024, 15:11