views:

28

answers:

0

i've written a plugin manager for my app , it utilizes codedom to compile c# code into a class library and instanciate its types. it works perfectly , and now i wish to restrict the permissions on the compiled assembly.unfortunatly i dont know how to do so. as far as i understand i should use CompilerParameters.Evidence in some way, but it is unclear to me of how. for te sake of clearity , i dont wish to simply categorize the assmbly as a certain zone, i want to limit it to a permission set that is passed as an argument in the plugin managers constructor. i also would like to mention that i do not load the assembly into a new appdomin , it is executed on the same domain as the rest of the application.

thanks.