예제 #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="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;
		}
예제 #4
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;
		}