Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Access to current user id (e.g. AbpSession.UserId in module #1955


User avatar
0
danielkuhlmann created

Hi, I need access to AbpSession.UserId, in ShutDown() method of module. But sofar can't figure out how to do that. Could you please advice?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you try to resolve it like this,

    IocManager.Resolve<IAbpSession>()
    
  • User Avatar
    0
    danielkuhlmann created

    Hi yes I did, but then UserId is null. Anyhow I think i am on the wrong track anyway with what I want to achive. ShutDown() of module is fired on server when webserver is stopped. There is no current user when in the shutdown() method.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If you explain what you want to achive, maybe we can figure something out.