Exemple #1
0
 /// <summary>
 /// Maps a common settings
 /// </summary>
 /// <param name="minifier">Minifier</param>
 /// <param name="commonMinifierSettings">Common configuration settings of Microsoft Ajax Minifier</param>
 protected static void MapCommonSettings(MicrosoftAjaxMinifierBase minifier,
                                         MinifierSettingsBase commonMinifierSettings)
 {
     minifier.AllowEmbeddedAspNetBlocks = commonMinifierSettings.AllowEmbeddedAspNetBlocks;
     minifier.BlocksStartOnSameLine     = commonMinifierSettings.BlocksStartOnSameLine;
     minifier.IgnoreAllErrors           = commonMinifierSettings.IgnoreAllErrors;
     minifier.IgnoreErrorList           = commonMinifierSettings.IgnoreErrorList;
     minifier.IndentSize             = commonMinifierSettings.IndentSize;
     minifier.LineBreakThreshold     = commonMinifierSettings.LineBreakThreshold;
     minifier.OutputMode             = commonMinifierSettings.OutputMode;
     minifier.PreprocessorDefineList = commonMinifierSettings.PreprocessorDefineList;
     minifier.TermSemicolons         = commonMinifierSettings.TermSemicolons;
     minifier.Severity = commonMinifierSettings.Severity;
 }
		/// <summary>
		/// Maps a common settings
		/// </summary>
		/// <param name="minifier">Minifier</param>
		/// <param name="commonMinifierSettings">Common configuration settings of Microsoft Ajax Minifier</param>
		protected static void MapCommonSettings(MicrosoftAjaxMinifierBase minifier,
			MinifierSettingsBase commonMinifierSettings)
		{
			minifier.AllowEmbeddedAspNetBlocks = commonMinifierSettings.AllowEmbeddedAspNetBlocks;
			minifier.BlocksStartOnSameLine = commonMinifierSettings.BlocksStartOnSameLine;
			minifier.IgnoreAllErrors = commonMinifierSettings.IgnoreAllErrors;
			minifier.IgnoreErrorList = commonMinifierSettings.IgnoreErrorList;
			minifier.IndentSize = commonMinifierSettings.IndentSize;
			minifier.LineBreakThreshold = commonMinifierSettings.LineBreakThreshold;
			minifier.OutputMode = commonMinifierSettings.OutputMode;
			minifier.PreprocessorDefineList = commonMinifierSettings.PreprocessorDefineList;
			minifier.TermSemicolons = commonMinifierSettings.TermSemicolons;
			minifier.Severity = commonMinifierSettings.Severity;
		}