Open Closed

Create a service similar to CurrentUser #6937


User avatar
0
jhulbertpmn created
  • ABP Framework version: v8.0.4
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)

I'd like to create a service similar to CurrentUser, which is registered for each login and contains a few details throughout the user session (but would like it to be separate from CurrentUser). For instance, something like ICurrentCompany, with a CompanyId. I was looking at occurrences of ICurrentUser throughout the framework source and may be missing something obvious - but I am not finding where it actually gets registered (I just see it accessed many times).


1 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    You can try to download the Account.Pro adn Identity.Pro modules to check the code.

    thanks

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