Пример #1
0
        /// <summary>
        /// Creates an instance of <see cref="GlobalConfiguration"/> initialized by default values.
        /// </summary>
        public GlobalConfiguration()
        {
            GlobalVariables = new GlobalVariablesSection();
            Library         = new LibraryConfigurationsSection();
#if !SILVERLIGHT
            PostedFiles = new PostedFilesSection();
            SafeMode    = new SafeModeSection();
#endif
            this.LastConfigurationModifiedTimeUtc = DateTime.MinValue;
        }
Пример #2
0
        /// <summary>
        /// Creates an instance of <see cref="GlobalConfiguration"/> initialized by values
        /// copied from the specified instance.
        /// </summary>
        /// <param name="source">The configuration from which to copy values.</param>
        private GlobalConfiguration(GlobalConfiguration /*!*/ source)
        {
            Debug.Assert(source != null);

            this.GlobalVariables = source.GlobalVariables.DeepCopy();
            this.Library         = source.Library.DeepCopy();
#if !SILVERLIGHT
            this.PostedFiles = source.PostedFiles.DeepCopy();
            this.SafeMode    = source.SafeMode.DeepCopy();
#endif
            this.LastConfigurationModifiedTimeUtc = source.LastConfigurationModifiedTimeUtc;
        }
Пример #3
0
        /// <summary>
        /// Creates an instance of <see cref="LocalConfiguration"/> initialized by values
        /// copied from the specified instance.
        /// </summary>
        /// <param name="source"></param>
        private LocalConfiguration(LocalConfiguration source)
        {
            this.OutputControl  = source.OutputControl.DeepCopy();
            this.ErrorControl   = source.ErrorControl.DeepCopy();
            this.RequestControl = source.RequestControl.DeepCopy();
            this.FileSystem     = source.FileSystem.DeepCopy();
            this.Assertion      = source.Assertion.DeepCopy();
            this.Variables      = source.Variables.DeepCopy();
            this.Session        = source.Session.DeepCopy();
            this.Library        = source.Library.DeepCopy();

            LastConfigurationModifiedTimeUtc = source.LastConfigurationModifiedTimeUtc;
        }
Пример #4
0
        /// <summary>
        /// Creates an instance of <see cref="LocalConfiguration"/> initialized by default values.
        /// </summary>
        public LocalConfiguration()
        {
            OutputControl  = new OutputControlSection();
            ErrorControl   = new ErrorControlSection();
            RequestControl = new RequestControlSection();
            FileSystem     = new FileSystemSection();
            Assertion      = new AssertionSection();
            Variables      = new VariablesSection();
            Session        = new SessionSection();
            Library        = new LibraryConfigurationsSection();

            LastConfigurationModifiedTimeUtc = DateTime.MinValue;
        }
Пример #5
0
		/// <summary>
		/// Makes a deep copy of all library configurations.
		/// </summary>
		public LibraryConfigurationsSection DeepCopy()
		{
			LibraryConfigurationsSection result = new LibraryConfigurationsSection();

			if (IsConfigurationLoaded)
			{
				result._configurations = new IPhpConfiguration[_configurations.Length];
				for (int i = 0; i < _configurations.Length; i++)
				{
					if (this._configurations[i] != null)
						result._configurations[i] = _configurations[i].DeepCopy();
				}
			}
			return result;
		}
Пример #6
0
        /// <summary>
        /// Makes a deep copy of all library configurations.
        /// </summary>
        public LibraryConfigurationsSection DeepCopy()
        {
            LibraryConfigurationsSection result = new LibraryConfigurationsSection();

            if (IsConfigurationLoaded)
            {
                result._configurations = new IPhpConfiguration[_configurations.Length];
                for (int i = 0; i < _configurations.Length; i++)
                {
                    if (this._configurations[i] != null)
                    {
                        result._configurations[i] = _configurations[i].DeepCopy();
                    }
                }
            }
            return(result);
        }
Пример #7
0
		/// <summary>
		/// Creates an instance of <see cref="LocalConfiguration"/> initialized by values 
		/// copied from the specified instance.
		/// </summary>
		/// <param name="source"></param>
		private LocalConfiguration(LocalConfiguration source)
		{
			this.OutputControl = source.OutputControl.DeepCopy();
			this.ErrorControl = source.ErrorControl.DeepCopy();
			this.RequestControl = source.RequestControl.DeepCopy();
			this.FileSystem = source.FileSystem.DeepCopy();
			this.Assertion = source.Assertion.DeepCopy();
			this.Variables = source.Variables.DeepCopy();
			this.Session = source.Session.DeepCopy();
			this.Library = source.Library.DeepCopy();

            LastConfigurationModificationTime = source.LastConfigurationModificationTime;
		}
Пример #8
0
		/// <summary>
		/// Creates an instance of <see cref="LocalConfiguration"/> initialized by default values.
		/// </summary>
		public LocalConfiguration()
		{
			OutputControl = new OutputControlSection();
			ErrorControl = new ErrorControlSection();
			RequestControl = new RequestControlSection();
			FileSystem = new FileSystemSection();
			Assertion = new AssertionSection();
			Variables = new VariablesSection();
			Session = new SessionSection();
			Library = new LibraryConfigurationsSection();

            LastConfigurationModificationTime = DateTime.MinValue;
		}
Пример #9
0
		/// <summary>
		/// Creates an instance of <see cref="GlobalConfiguration"/> initialized by values 
		/// copied from the specified instance.
		/// </summary>
		/// <param name="source">The configuration from which to copy values.</param>
		private GlobalConfiguration(GlobalConfiguration/*!*/ source)
		{
			Debug.Assert(source != null);

			this.GlobalVariables = source.GlobalVariables.DeepCopy();
			this.Library = source.Library.DeepCopy();
#if !SILVERLIGHT
			this.PostedFiles = source.PostedFiles.DeepCopy();
			this.SafeMode = source.SafeMode.DeepCopy();
#endif
            this.LastConfigurationModificationTime = source.LastConfigurationModificationTime;
		}
Пример #10
0
		/// <summary>
		/// Creates an instance of <see cref="GlobalConfiguration"/> initialized by default values.
		/// </summary>		
		public GlobalConfiguration()
		{
			GlobalVariables = new GlobalVariablesSection();
			Library = new LibraryConfigurationsSection();
#if !SILVERLIGHT
			PostedFiles = new PostedFilesSection();
			SafeMode = new SafeModeSection();
#endif
            this.LastConfigurationModificationTime = DateTime.MinValue;
		}