internal AppDomainSetup(AppDomainSetup copy, bool copyDomainBoundData)
 {
     string[] strArray = this.Value;
     if (copy != null)
     {
         string[] strArray2 = copy.Value;
         int      length    = this._Entries.Length;
         int      num2      = strArray2.Length;
         int      num3      = (num2 < length) ? num2 : length;
         for (int i = 0; i < num3; i++)
         {
             strArray[i] = strArray2[i];
         }
         if (num3 < length)
         {
             for (int j = num3; j < length; j++)
             {
                 strArray[j] = null;
             }
         }
         this._LoaderOptimization            = copy._LoaderOptimization;
         this._AppDomainInitializerArguments = copy.AppDomainInitializerArguments;
         this._ActivationArguments           = copy.ActivationArguments;
         this._ApplicationTrust = copy._ApplicationTrust;
         if (copyDomainBoundData)
         {
             this._AppDomainInitializer = copy.AppDomainInitializer;
         }
         else
         {
             this._AppDomainInitializer = null;
         }
         this._ConfigurationBytes       = copy.GetConfigurationBytes();
         this._DisableInterfaceCache    = copy._DisableInterfaceCache;
         this._AppDomainManagerAssembly = copy.AppDomainManagerAssembly;
         this._AppDomainManagerType     = copy.AppDomainManagerType;
         this._AptcaVisibleAssemblies   = copy.PartialTrustVisibleAssemblies;
         if (copy._CompatFlags != null)
         {
             this._CompatFlags = new Dictionary <string, object>(copy._CompatFlags);
         }
     }
     else
     {
         this._LoaderOptimization = System.LoaderOptimization.NotSpecified;
     }
 }
 public AppDomainSetup(System.Runtime.Hosting.ActivationArguments activationArguments)
 {
     if (activationArguments == null)
     {
         throw new ArgumentNullException("activationArguments");
     }
     this._LoaderOptimization = System.LoaderOptimization.NotSpecified;
     this.ActivationArguments = activationArguments;
     string entryPointFullPath = CmsUtils.GetEntryPointFullPath(activationArguments);
     if (!string.IsNullOrEmpty(entryPointFullPath))
     {
         this.SetupDefaults(entryPointFullPath);
     }
     else
     {
         this.ApplicationBase = activationArguments.ActivationContext.ApplicationDirectory;
     }
 }
Exemplo n.º 3
0
        public AppDomainSetup(System.Runtime.Hosting.ActivationArguments activationArguments)
        {
            if (activationArguments == null)
            {
                throw new ArgumentNullException("activationArguments");
            }
            this._LoaderOptimization = System.LoaderOptimization.NotSpecified;
            this.ActivationArguments = activationArguments;
            string entryPointFullPath = CmsUtils.GetEntryPointFullPath(activationArguments);

            if (!string.IsNullOrEmpty(entryPointFullPath))
            {
                this.SetupDefaultApplicationBase(entryPointFullPath);
            }
            else
            {
                this.ApplicationBase = activationArguments.ActivationContext.ApplicationDirectory;
            }
        }
Exemplo n.º 4
0
 internal AppDomainSetup(AppDomainSetup copy, bool copyDomainBoundData)
 {
     string[] strArray = this.Value;
     if (copy != null)
     {
         string[] strArray2 = copy.Value;
         int      length    = this._Entries.Length;
         int      num2      = strArray2.Length;
         int      num3      = (num2 < length) ? num2 : length;
         for (int i = 0; i < num3; i++)
         {
             strArray[i] = strArray2[i];
         }
         if (num3 < length)
         {
             for (int j = num3; j < length; j++)
             {
                 strArray[j] = null;
             }
         }
         this._LoaderOptimization            = copy._LoaderOptimization;
         this._AppDomainInitializerArguments = copy.AppDomainInitializerArguments;
         this._ActivationArguments           = copy.ActivationArguments;
         this._ApplicationTrust = copy._ApplicationTrust;
         if (copyDomainBoundData)
         {
             this._AppDomainInitializer = copy.AppDomainInitializer;
         }
         else
         {
             this._AppDomainInitializer = null;
         }
         this._ConfigurationBytes    = copy.GetConfigurationBytes();
         this._DisableInterfaceCache = copy._DisableInterfaceCache;
     }
     else
     {
         this._LoaderOptimization = System.LoaderOptimization.NotSpecified;
     }
 }
 internal AppDomainSetup(AppDomainSetup copy, bool copyDomainBoundData)
 {
     string[] strArray = this.Value;
     if (copy != null)
     {
         string[] strArray2 = copy.Value;
         int length = this._Entries.Length;
         int num2 = strArray2.Length;
         int num3 = (num2 < length) ? num2 : length;
         for (int i = 0; i < num3; i++)
         {
             strArray[i] = strArray2[i];
         }
         if (num3 < length)
         {
             for (int j = num3; j < length; j++)
             {
                 strArray[j] = null;
             }
         }
         this._LoaderOptimization = copy._LoaderOptimization;
         this._AppDomainInitializerArguments = copy.AppDomainInitializerArguments;
         this._ActivationArguments = copy.ActivationArguments;
         this._ApplicationTrust = copy._ApplicationTrust;
         if (copyDomainBoundData)
         {
             this._AppDomainInitializer = copy.AppDomainInitializer;
         }
         else
         {
             this._AppDomainInitializer = null;
         }
         this._ConfigurationBytes = copy.GetConfigurationBytes();
         this._DisableInterfaceCache = copy._DisableInterfaceCache;
         this._AppDomainManagerAssembly = copy.AppDomainManagerAssembly;
         this._AppDomainManagerType = copy.AppDomainManagerType;
         this._AptcaVisibleAssemblies = copy.PartialTrustVisibleAssemblies;
         if (copy._CompatFlags != null)
         {
             this._CompatFlags = new Dictionary<string, object>(copy._CompatFlags);
         }
     }
     else
     {
         this._LoaderOptimization = System.LoaderOptimization.NotSpecified;
     }
 }
 public AppDomainSetup()
 {
     this._LoaderOptimization = System.LoaderOptimization.NotSpecified;
 }
Exemplo n.º 7
0
 public AppDomainSetup()
 {
     this._LoaderOptimization = System.LoaderOptimization.NotSpecified;
 }