C# 클래스 Universe.ScriptEngine.VirtualScript.AppDomainManager

This manages app domains and controls what app domains are created/destroyed
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe

공개 메소드들

메소드 설명
AppDomainManager ( ScriptEngine scriptEngine ) : System
CreateRestrictedDomain ( string permissionSetName, string appDomainName, AppDomainSetup ads ) : AppDomain

Create an AppDomain that contains policy restricting code to execute with only the permissions granted by a named permission set

Substantial portions of this function from: http://blogs.msdn.com/shawnfa/archive/2004/10/25/247379.aspx Valid permissionSetName values are: * FullTrust * SkipVerification * Execution * Nothing * LocalIntranet * Internet * Everything

LoadScript ( string fileName, string typeName, AppDomain &ad ) : IScript
ReadConfig ( ) : void
UnloadScriptAppDomain ( AppDomain ad ) : void

비공개 메소드들

메소드 설명
GetFreeAppDomain ( ) : AppDomainStructure
PrepareNewAppDomain ( ) : AppDomain
UnloadAppDomains ( ) : void

메소드 상세

AppDomainManager() 공개 메소드

public AppDomainManager ( ScriptEngine scriptEngine ) : System
scriptEngine ScriptEngine
리턴 System

CreateRestrictedDomain() 공개 메소드

Create an AppDomain that contains policy restricting code to execute with only the permissions granted by a named permission set
Substantial portions of this function from: http://blogs.msdn.com/shawnfa/archive/2004/10/25/247379.aspx Valid permissionSetName values are: * FullTrust * SkipVerification * Execution * Nothing * LocalIntranet * Internet * Everything
/// if is null /// /// if is empty ///
public CreateRestrictedDomain ( string permissionSetName, string appDomainName, AppDomainSetup ads ) : AppDomain
permissionSetName string name of the permission set to restrict to
appDomainName string 'friendly' name of the appdomain to be created
ads System.AppDomainSetup
리턴 System.AppDomain

LoadScript() 공개 메소드

public LoadScript ( string fileName, string typeName, AppDomain &ad ) : IScript
fileName string
typeName string
ad System.AppDomain
리턴 IScript

ReadConfig() 공개 메소드

public ReadConfig ( ) : void
리턴 void

UnloadScriptAppDomain() 공개 메소드

public UnloadScriptAppDomain ( AppDomain ad ) : void
ad System.AppDomain
리턴 void