I am developing a plugin host. The plugins should have as little trust as they need, however I want to have the possibility for a plugin to read and write files.
Can the AppDomain where the assembly will be loaded be restricted to have access to only one directory for reading and writing?
Other options and ways to go about this are also appreciated like for example easy ways to stream file data from the host to the plugin (reading) and from the plugin to the host (writing).
If its relevant: I am using the MAF infrastructure for the plugins. http://msdn.microsoft.com/en-us/library/bb384200.aspx