title: Get UserId from class library project
body: <p>Is there a way to get the UserId from a class library project? This class library project logs everything a user does and write it to a database. </p>
  
  <p>But I need the UserId too which I can't get from any project except a web project. I also would need the user's ip address from the class library project.</p>
  
  <p>Anyone has done this before in an <code>asp.net-mvc</code> project and could share it how to do it?</p>