Hi, I would like to pass certain data from an instance of an object to its attribute, and I have troubles inderstanding how to implement it. Here's a sample:
[AuthenticateAttribute]
public class MyController: Controller
{
UserInfo info;
}
The idea is that AuthenticateAttribute instance would populate the UserInfo instance.
I want to pass reference to info to an instance of AuthenticateAttribute and thereby eliminate strong coupling between the attribute and the particular MyController class.
Is this possible?