I need to implement a plugin architecture in C # /. net to download
- custom user actions
- data type processing code for custom data grid / transformation / ...
from non-static linked assembly files.
Since the application must handle many user-defined user actions, Iam needs to unload them after they are completed in order to reduce memory usage.
I found some good articles about plugin architectures, for example:
but none of them gave me enough sausages to properly unload the assembly.
Since the program should be distributed, and user-defined actions (as indicated in the name) are determined by the user: how to prevent the assembly of malicious code (for example, closing my program, deleting files)?
Are there any other pitfalls you have encountered?
source
share