* CustomizableFileSettingsProvider.cs : when a property is found
only in the config file and not in the corresponding config type,
do not raise NRE but just add it as a simple property value.
Fixed bug #343459.
svn path=/trunk/mcs/; revision=90108
* SettingValueElement.cs : implement Reset().
* CustomizableFileSettingsProvider.cs : fixed company name getter
and product name getter.
LoadPropertyValue() should expect null ValueXml.
* LocalFileSettingsProvider.cs : time to switch. With a bit of
directory name difference, it should work.
svn path=/trunk/mcs/; revision=80469
* CustomizableLocalFileSettingsProvider.cs :
- added extern alias to avoid reference and I could enable
Initialize() again.
- Copied default user config path stuff (Company/Product/Version)
from MWF Application.cs.
- SaveProperties() and SavePropertiesNoRoaming() are unified, and
mostly rewritten to create userSettings, set value correctly, etc.
- GetPropertyValues() should collect default values as well.
It is not enabled yet, as Configuration.Save() seems to do wrong
and could overwrite application exe.config.
svn path=/trunk/mcs/; revision=79474
* CustomizableLocalFileSettingsProvider.cs : contribution for
LocalFileSettingsProvider implementation, by Noriaki Okimoto
([email protected]), modified by myself to fit for System.dll.
Origin of code license assignment at
http://ojk.sppd.ne.jp/ojkblog/?date=20070603#p01.
* LocalFileSettingsProvider.cs : rewriting to use above.
Due to some kind of compiler issue it is not enabled yet.
* System.dll.sources :
added CustomizableLocalFileSettingsProvider.cs.
svn path=/trunk/mcs/; revision=78561
* ConfigXmlDocument.cs : added explicit interface implementations.
* ApplicationSettingsBase.cs : split deeply-nested get_Properties()
into itself and a method. Treat default LocalFileSettingsProvider
as a (valid) settings provider. Removed a fixme (only public
members should be available).
* SettingsBase.cs : check lock state in Save().
* SettingsProviderCollection.cs : remove bogus table field which
conflicts with the table in base ProviderCollection class.
svn path=/trunk/mcs/; revision=78240
* SettingsBase.cs : property values are filled only when each
property is accessed. It should not use virtual providers,
properties or context internally since they could be overriden.
* SettingsPropertyValue.cs : to serialize value as string, use
TypeConverter as well (as deserialization).
* SettingsProviderCollection.cs : (Add) null arg check.
* SettingsBaseTest.cs : new test.
* ApplicationSettingsBaseTest.cs : added Providers().
* System_test.dll.sources : added SettingsBaseTest.cs.
svn path=/trunk/mcs/; revision=78181
Add the possibility to bundle also the machine.config file, from
#80305.
* mkbundle.cs: Add option --machine-config. Warn the user that a
bundled machine.config file should be checked that it doesn't
contain sensitive data like private machine keys.
If that option was used, write the contents of the machine.config
file to the asm output file, and write code to call
mono_register_machine_config() with the data to the C output file.
svn path=/trunk/mcs/; revision=70489
* ConfigurationSettings.cs :
Handle <section> inside <section> as expected.
Fixed some ReadSections() consumers that it does _not_ consume
the surrounding EndElement. For now all issues I found are gone.
svn path=/trunk/mcs/; revision=66651
* ConfigurationSettings.cs : another MoveToNextElement() elimination.
When there is another section group after "system.drawing"
section in the existing machine.config, it borked as if there were
no "system.diagnostics" section.
It is still buggy; prepended sectionGroup still causes the above.
svn path=/trunk/mcs/; revision=66644
* ConfigurationSettings.cs : when there is no content in
sectionGroup, all the following contents were incorrectly read
as the empty group's subsection.
svn path=/trunk/mcs/; revision=66642
* ConfigurationSettings.cs: Assert FileIOPermission when loading a
configuration file.
* ConfigXmlDocument.cs: Add an imperative demand for PathDiscovery on
all (many classes) Filename properties. Ensure we're not using the
property (but the member) inside the class itself.
svn path=/trunk/mcs/; revision=63180
* ApplicationSettingsBase.cs : When we use default value, convert it
to proper type. Fixed bug #78654. Patch by Gareth Pearce.
* ApplicationSettingsBaseTest.cs : added test for bug #78654.
svn path=/trunk/mcs/; revision=62136
* SettingsPropertyCollection.cs : implemented some synchronization
releated members. Actually it can never be synchronized by itself.
* SettingsBase.cs : Synchronized() just returns the same instance,
marking it as IsSynchronized = true. Fixed bug #78430.
* LocalFileSettingsProviderTest.cs : commented some lines in
Initialized() as they don't work under .NET.
* ApplicationSettingsBaseTest.cs : added Synchronized(), test for
bug #78430.
* SwitchesTest.cs : Ignore NewSwitch under 2.0 as it fails under
.NET.
svn path=/trunk/mcs/; revision=60792
* ConfigurationSettings.cs : ok, now I correctly understand the
problem. Since appSettings section handlers are different between
1.x and 2.0 AppSettings property implementation should also be
different. It should really fix bug #78372.
svn path=/trunk/mcs/; revision=60654
* Makefile : add -r:System.Configuration under net_2_0.
* ConfigurationSettings.cs : use ConfigurationManager.GetConfig()
in its GetConfig(). No need to change AppSettings and
Default.GetConfig() behavior here.
* t35.cs, t35.exe.config, t35.exe.expected :
new test, largely from bug #78337.
* ConfigurationManagerTest.cs :
added GetSectionReturnsNativeObject().
* ConfigurationElement.cs,
DefaultSection.cs :
in some cases RawXml was set null string, so skip such cases.
* Configuration.cs : support IConfigurationSectionHandler here.
* ConfigurationManager.cs : GetSection() now returns name value
collection, not a section.
* ConfigurationSection.cs : added SectionHandler for
IConfigurationSectionHandler support, and use its Create() in
GetRuntimeObject().
* ClientConfigurationSystem.cs :
use GetRuntimeObject() in GetSection(). Thus now
ConfigurationManager.GetSection() returns a runtime object.
Fixed bug #78337.
svn path=/trunk/mcs/; revision=60483
* ApplicationSettingsBase.cs (CacheValuesByProvider): emit
SettingsLoaded after we load the property values.
(set_Item[string]): fill in settingClass in the
SettingChangingEventArgs properly.
(get_Properties): don't depend on setting_attrs[0] being either
UserScoped- or ApplicationScopedSettingAttribute. Also, call
Initialize on any providers we create here.
* LocalFileSettingsProvider.cs (GetPropertyValues): add a naive
implementation, leave a MonoTODO.
(Initialize): fill in name properly, and deal with null values.
svn path=/trunk/mcs/; revision=60336
* System.dll.sources : added ClientSettingsSection.cs.
* ClientSettingsSection.cs : new (implemented) file.
* SettingValueElement.cs : implemented.
SettingElement.cs : implemented.
SettingElementCollection.cs : implemented except for Add(),
Clear(), Get() and Remove().
A test will be soon added as part of bug #77957 test with
DefaultCollection support in sys.configuration.
svn path=/trunk/mcs/; revision=59985
* System.dll.sources : added ApplicationSettingsGroup.cs.
* ApplicationSettingsGroup.cs : added missing type. This is part of
fix for bug #77957.
svn path=/trunk/mcs/; revision=59919
* Uri.cs: Pragma disable warning 612 (Obsolete methods are being
used by us internally).
Ponder: should we instead move our methods to use new versions of
the Obsoleted ones?
2006-03-11 Miguel de Icaza <[email protected]>
* CodeNamespaceImportCollection.cs: It turns out that a lot of the
errors flagged with "!" were just missing explicit interface
implementations.
Implement.
2006-03-11 Miguel de Icaza <[email protected]>
* CodeDomConfigurationHandler.cs: Comment out unused methods.
* TempFileCollection.cs: Implement explicitly some interface
methods to get rid of the "!" errors on CorCompare.
2006-03-11 Miguel de Icaza <[email protected]>
* Queue.cs: Flag as serializable.
* LinkedList.cs (OnDeserialization): Fix signature.
* SortedList.cs: Implement explicitly a few methods that were
flagged by corcompare.
2006-03-11 Miguel de Icaza <[email protected]>
* IOrderedDictionary.cs: Flag GetEnumerator as a "new" method to
avoid warning.
2006-03-11 Miguel de Icaza <[email protected]>
* ConfigurationSettings.cs (ChangeConfigurationSettings): Make
internal to avoid warnings. This routine is called from
System.Web with MethodInfo.Invoke.
2006-03-11 Miguel de Icaza <[email protected]>
* DeflateStream.cs: Comment out DllImport that was not being
used.
2006-03-11 Miguel de Icaza <[email protected]>
* y
* SerialPort.cs: Remove unused variable (writeBuffer).
* SerialPortStream.cs (Dispose): override, not new.
2006-03-11 Miguel de Icaza <[email protected]>
* WebClient.cs: Only expose the right methods to avoid warnings.
* FtpDataStream.cs (Dispose): Fix signature.
* FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
like we are missing features here).
* IPAddress.cs: Move m_HashCode property to the end, and set
pragmas to disable warnings.
2006-03-11 Miguel de Icaza <[email protected]>
* MailAddress.cs: Comment out unused field to remove warning.
2006-03-11 Miguel de Icaza <[email protected]>
* NetworkChange.cs: Use pragmas to eliminate warnings from events
that we do not trigger yet.
This is a candidate for using Aaron's NetworkManager code. But
would make us depend on d-bus.
* NetworkInformationException.cs: Use error_code for ErrorCode,
instead of NativeErrorCode. Fixes warning.
2006-03-11 Miguel de Icaza <[email protected]>
* AuthenticatedStream.cs: Fixed normative parameter names (yes, we
need to do this everywhere one day).
(Close): actually obey the "leaveInnerStreamOpen" setting from the
constructor.
2006-03-11 Miguel de Icaza <[email protected]>
* NetworkStream.cs (Dispose): Use the right signature depending on
the profile being built.
2006-03-11 Miguel de Icaza <[email protected]>
* X509Chain.cs: Flagged member as internal to avoid unused warning.
* X500DistinguishedName.cs: Comment out unused names and move
temporary unused variables inside the comments that were removed
svn path=/trunk/mcs/; revision=57836
* ConfigurationElement.cs : ListErrors() and SetPropertyValue()
are protected.
* ConfigurationSection.cs : the .ctor() is protected.
* ConfigurationElementCollection.cs : CollectionType is public.
Count and BaseAdd() are not virtual.
* ConfigurationPropertyCollection.cs : Count is not virtual.
* SettingElementCollection.cs : CollectionType is protected.
* TrustLevelCollection.cs, CodeSubDirectoriesCollection.cs,
CustomErrorCollection.cs, CompilerCollection.cs,
HttpHandlerActionCollection.cs,
FormsAuthenticationUserCollection.cs,
AuthorizationRuleCollection.cs, TagPrefixCollection.cs :
CollectionType is public.
svn path=/trunk/mcs/; revision=56425
* ConfigurationSettings.cs (AppSettings): move back to a 1.x
strategy in the 2.0 case. That is, don't hardcode the reference
to ConfigurationManager.AppSettings (yet). Eventually we can move
back to this code, once ConfigurationManager supports reading
web.config for settings.
svn path=/trunk/mcs/; revision=55649
* ConfigurationSettings.cs (GetConfig): be nice to people using
old 1.x style section handlers with the new 2.0 config stuff. If
we're about to return null or IgnoreSection, try to load it using
the 1.x api. If that works, return that object.
svn path=/trunk/mcs/; revision=55026