I took the first steps towards MEF a few months ago, and so far everything was in order. I want to use MEF in my real applications and downloads, or we can say that the user interface components are based on the allowed user rights. I am developing a patient management system for a clinic, and I want to implement a scenario in which the MI components that make up the user interface are displayed based on the type of user. for example, if the authenticated user is a doctor, I want to show specific components and hide others.
What I'm trying to achieve is something like
ISystemComponent , which has some properties and methods, so administration can control each level of user access and based on database records. The controls created by MEF will be displayed to the end user. I also think about using the MetaData interface when exporting components, so using this, how can I get the desired result?
any right direction will be appreciated
authentication c # mef user-controls
Rati_ge
source share