示例#1
0
 private void InitailizeQueriesAppDomain()
 {
     queriesAppDomain = AppDomain.CreateDomain("Queries", null, AppDomain.CurrentDomain.SetupInformation);
     queryRunnerManager = (QueryRunnerManager)queriesAppDomain.CreateInstanceAndUnwrap(typeof(QueryRunnerManager).Assembly.FullName, typeof(QueryRunnerManager).FullName);
 }
示例#2
0
 private void UnloadQueriesAppDomain()
 {
     queryRunnerManager = null;
     if (queriesAppDomain != null)
         AppDomain.Unload(queriesAppDomain);
 }