问题
are there any tutorials out there on how to create a sandbox using C#?
I would like to personalize my own one, thanks
回答1:
Study up on using AppDomains. Here's some code examples.
回答2:
We just recently used the MonoSandbox for Security reasons.
I don't know if it works with standard Microsoft's CLR, or if it is specific to the Mono implementation, but I think it works better than just a custom sanbdbox using AppDomains, and since the source code is open you can probably find a way to make it work for you.
The best documentation I have found for the MonoSandbox is here: http://www.mono-project.com/MonoSandbox
回答3:
I would start by looking at Code Access Security.
来源:https://stackoverflow.com/questions/2464854/create-sandbox-c-sharp