Scripting Language in a Sandbox for a C#/.NET Application

前端 未结 2 490
深忆病人
深忆病人 2021-01-02 23:26

[This question is similar to this one, but I am also interested in the possibility of a sandbox.]

I am considering embedding a scripting language in my C#/.NET appli

相关标签:
2条回答
  • 2021-01-03 00:10

    You can load te script into a different AppDomain and control the permissions of the second AppDomain.

    This link should get you started:
    http://blogs.msdn.com/shawnfa/archive/2005/08/08/449050.aspx

    0 讨论(0)
  • 2021-01-03 00:19

    I have used Powershell as a scripting language on windows myself and found it to be very useful, and if you are familiar with .NET then its all the more easier.

    Download a two page reference document here, this is all you will need to get started.

    But yes you can use .NET System.IO namespace to perform IO operations via Powershell

    same posted # this link

    0 讨论(0)
提交回复
热议问题