Restrict plug-in assembly code access

后端 未结 3 1800

I\'d like to create a plug-in architecture where I can limit an assemblies API to something very restricted, i.e. only allow a whitelist of functions. Is it possible to res

3条回答
  •  不思量自难忘°
    2021-01-01 04:21

    It should be possible with Code Access Security.

    I found this article.

    http://www.15seconds.com/Issue/040121.htm

    AppDomain Policy Level would be yours

    EDIT: It's quite complicated to provide a sample code. But MSDN should give you some good hints: http://msdn.microsoft.com/en-us/library/yctbsyf4(VS.71).aspx

提交回复
热议问题