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 Member

    Hello,

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

    thanks

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 11, 2025, 10:10