With the demise of Code Access Security, how do we restrict access to a DLL in .Net framework 4.0?
Specifically, we have a project with a UI layer and a business layer. The UI layer tells the business layer who the user is.
What we are trying to stop is any dll other than the UI layer calling the business layer and saying "Hi I am Joe".