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