Ejemplo n.º 1
0
        private AppDomain CreateAppDomain(Repository repository, string name)
        {
            AppDomain domain;

            this._loadedAssemblyCount      = 0;
            this._cumulativeFootprint      = 0L;
            this._cachedDomainPolluted     = false;
            _lastRemotelyLoadedAssemblies  = this._remotelyLoadedAssemblies;
            this._remotelyLoadedAssemblies = new List <TempFileRef>();
            string data = this.AllowShadow() ? this._shadowFolder : null;

            if (repository != null)
            {
                domain = repository.CreateSchemaAndRunnerDomain("LINQPad Query Server [" + name + "]", data != null, true);
            }
            else
            {
                domain = AppDomainUtil.CreateDomain("LINQPad Query Server [" + name + "]");
            }
            if (data != null)
            {
                domain.SetData("LINQPad.ShadowPath", data);
            }
            return(domain);
        }
Ejemplo n.º 2
0
 public DomainIsolator(string friendlyName, string configFile, string appBase) : this(AppDomainUtil.CreateDomain(friendlyName, configFile, appBase))
 {
 }