* WebConfigurationManager.cs: added support for suppressing
application reload when the main config file is written to from
application.
* WebConfigurationHost.cs: added minimal implementation of
WriteCompleted, which checks if there's need to suppress
application reload.
2009-07-14 Marek Habersack <[email protected]>
* ConfigurationSaveEventArgs.cs, ConfigurationSaveEventHandler.cs:
added
* Configuration.cs: added two internal events - SaveStart and
SaveEnd. They are used by System.Web's configuration system to
suppress application reloads when configuration is modified and
saved from within a web application. It is necessary to use events
since there is no guarantee the web application will use
WebConfigurationManager (and thus WebConfigurationHost) for
writing.
2009-07-14 Marek Habersack <[email protected]>
* System.Configuration.dll.sources: added
System.Configuration/ConfigurationSaveEventArgs.cs
System.Configuration/ConfigurationSaveEventHandler.cs
2009-07-14 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added InternalsVisibleTo for System.Web
2009-07-14 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: OnFileChanged doesn't reload
application if reload suppression is active.
svn path=/trunk/mcs/; revision=137847
* ConfigurationManager.cs (OpenExeConfigurationInternal): if the
string passed is empty, then we default to the startup assembly.
Fixes: #405574
Not entirely happy as there is no decent documentation for this
behavior (the docs state nothing about empty strings).
svn path=/trunk/mcs/; revision=107019
GetFilename/GetLineNumber overloads.
* System.Configuration_test.dll.sources: added
ConfigurationErrorsExceptionTest.cs.
* System.Configuration.dll.sources: added ConfigXmlTextReader.cs.
* ConfigurationElement.cs: Use ConfigurationErrorsException instead of
ConfigurationException, and pass reader to ConfigurationErrorsException
ctor to allow for file/linenumber info in exception message.
* ConfigurationErrorsException.cs: Removed local bareMessage field, and
use base.BareMessage field instead. Fixed Message property to only add
filename if not null or zero-length string, and only add line if not
zero. In GetFilename/GetLineNumber overloads, only try to get info if
node/reader implements IConfigErrorInfo.
* ConfigurationSection.cs: Use ConfigXmlTextReader instead of
XmlTextReader to allow for file/linenumber info in exception messages.
* ConfigXmlTextReader.cs: Added XmlTextReader that implements
IConfigErrorInfo.
* ConfigurationLocation.cs: Use ConfigXmlTextReader instead of
XmlTextReader to allow for file/linenumber info in exception messages.
* ClientConfigurationSystem.cs: Perform lazy initialization and
wrap exceptions in ConfigurationErrorsException. Fixes standalone test
t28.
* Configuration.cs: Use ConfigXmlTextReader instead of XmlTextReader
to allow for file/linenumber info in exception messages.
* ConfigInfo.cs: Fixed ThrowException to use file/number info available
in XmlTextReader for exception message.
* AppSettingsSection.cs: Use ConfigXmlTextReader instead of
XmlTextReader to allow for file/linenumber info in exception messages.
* Assert.cs: added.
* Makefile: added Assert.cs, and explicitly specify output file.
* t28.cs: Improved test.
svn path=/trunk/mcs/; revision=106626
* ProviderBaseTest.cs: Added tests for Initialize.
* ProviderBase.cs: Remove "description" key from NameValueCollection.
Use provider name as description if description is null or a zero
length string. Modifies exception messages to match MS.
* GenericEnumConverterTest.cs: Remove unused variable.
* ConfigurationManagerTest.cs: Fixed line endings.
* ConnectionStringSettingsTest.cs: Fixed line endings and avoid
ToString override warning.
* KeyValueConfigurationElementTest.cs: Fixed line endings.
* KeyValueConfigurationCollectionTest.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=85126
* ConfigurationSectionGroup.cs
Configuration.cs : ConfigurationSectionGroup must be initialized
at least when being added to a collection.
* ConfigurationSectionGroupTest.cs : new (my change is with tests.)
* System.Configuration_test.dll.sources :
added ConfigurationSectionGroupTest.cs.
svn path=/trunk/mcs/; revision=79445
* ConfigurationSectionCollection.cs, ConfigurationSectionGroupCollection.cs,
PropertyInformationCollection.cs, SectionGroupInfo.cs: these collections should be based on case insensitive NameObjectCollectionBase
* added OrdinalComparer.cs for use in NameObjectCollectionBase
* t44.cs: added test for case sensitivity check
svn path=/trunk/mcs/; revision=74361
* added: ConfigurationRemoveElement.cs, common element for <remove>
* ConnectionStringSettingsCollection.cs: reverted last fix for <remove> element
* ConfigurationElementCollection.cs: fixed the way that OnDeserializeUnrecognizedElement method handles <remove> element
* t37.cs, t37.exe.config, t37.exe.expected: added some tests for <remove> element
svn path=/trunk/mcs/; revision=67370
* System.Configuration_test.dll.sources: add a bunch of new tests.
* System.Configuration.dll.sources: add a bunch of new files to
the build.
svn path=/trunk/mcs/; revision=51312