Commit Graph
128 Commits
Author SHA1 Message Date
Sebastien Pouliot 126013cbd9 2008-01-12 Sebastien Pouliot <[email protected]>
* SettingsPropertyValue.cs: Fix typo. Found using Gendarme.


svn path=/trunk/mcs/; revision=92758
2008-01-12 17:59:40 +00:00
Atsushi Eno ee6b478c4e 2007-11-21 Atsushi Enomoto <[email protected]>
* 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
2007-11-21 19:53:26 +00:00
Atsushi Eno 55a950c41f 2007-11-13 Atsushi Enomoto <[email protected]>
* ConfigXmlDocument.cs : corcompare cleanup.


svn path=/trunk/mcs/; revision=89529
2007-11-13 09:25:55 +00:00
Atsushi Eno d694d4f81e 2007-11-06 Atsushi Enomoto <[email protected]>
* CustomizableFileSettingsProvider.cs : Type.Namespace can be null.
	  MSDN documentation is kind of wrong here.


svn path=/trunk/mcs/; revision=88956
2007-11-06 09:43:48 +00:00
Arina Itkes e86d0f17f3 TARGET_JVM: return flow to the version before revision 80469
svn path=/trunk/mcs/; revision=88815
2007-11-04 10:30:24 +00:00
Atsushi Eno a351e7c4ea 2007-06-21 Atsushi Enomoto <[email protected]>
* 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
2007-06-21 13:13:51 +00:00
Atsushi Eno 67e9911781 2007-06-13 Atsushi Enomoto <[email protected]>
* 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
2007-06-13 18:35:58 +00:00
Atsushi Eno 6e4bd7db9e 2007-06-13 Atsushi Enomoto <[email protected]>
* SettingsContext.cs : add internal CurrentSettings property to
	  make current ApplicationSettingsBase accessible.
	* ApplicationSettingsBase.cs : use above.
	* SettingValueElement.cs : implement SerializeToXmlElement().

	* SettingElementTest.cs : test initial Value.


svn path=/trunk/mcs/; revision=79466
2007-06-13 17:50:52 +00:00
Vladimir Krasnov 4313759f85 * SettingValueElement.cs: fixed stub Properties property for System.Configuration fixes
svn path=/trunk/mcs/; revision=79259
2007-06-12 13:39:37 +00:00
Atsushi Eno 96d90229c1 2007-06-04 Atsushi Enomoto <[email protected]>
* 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
2007-06-04 14:03:54 +00:00
Atsushi Eno 2270d913b0 2007-05-30 Atsushi Enomoto <[email protected]>
* ApplicationSettingsBase.cs : removed garbage debugging stuff.


svn path=/trunk/mcs/; revision=78241
2007-05-30 17:47:05 +00:00
Atsushi Eno 8b06b7c8a2 2007-05-30 Atsushi Enomoto <[email protected]>
* 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
2007-05-30 17:46:17 +00:00
Atsushi Eno 9274590c24 2007-05-30 Atsushi Enomoto <[email protected]>
* 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
2007-05-30 10:03:57 +00:00
Atsushi Eno 50f1611d6e 2007-05-28 Atsushi Enomoto <[email protected]>
* SettingElementCollection.cs : fix build, cyclic build mess.


svn path=/trunk/mcs/; revision=78060
2007-05-28 14:25:13 +00:00
Atsushi Eno bd86f2a379 2007-05-28 Atsushi Enomoto <[email protected]>
* SettingElement.cs : fix default value (null->"").
	* SettingElementCollection.cs : implemented all.

	* SettingElementTest.cs : new test.

	* System_test.dll.sources : added SettingElementTest.cs.


svn path=/trunk/mcs/; revision=78053
2007-05-28 12:55:15 +00:00
Atsushi Eno 32f699f7ec 2007-05-28 Atsushi Enomoto <[email protected]>
* SettingsProviderAttribute.cs :
	  Return assembly qualified name. Check null args.
	* ConfigXmlDocument.cs : it implements IConfigErrorInfo.

	* ApplicationSettingsBaseTest.cs : enable working test.


svn path=/trunk/mcs/; revision=78043
2007-05-28 10:31:33 +00:00
Vladimir Krasnov 0ad9d70d19 * SettingsPropertyValue.cs: fixed binary deserealization that may be present as base64 string
svn path=/trunk/mcs/; revision=74389
2007-03-15 15:50:52 +00:00
Gert Driesen 863985be10 * ConfigurationSettings.cs: On 2.0 profile, use ConfigurationManager
to retrieve config section. Fixes bug #81020.

svn path=/trunk/mcs/; revision=73657
2007-03-03 14:20:58 +00:00
Miguel de Icaza 0f38908979 2007-01-22 Miguel de Icaza <[email protected]>
* SettingsBase.cs: Removed a NotImplementedException, it provides
	a default Save implementation. 

svn path=/trunk/mcs/; revision=71456
2007-01-22 20:11:06 +00:00
Vladimir Krasnov 0351fb9bb7 fixed IsDirty Property, added tests for IsDirty Property
svn path=/trunk/mcs/; revision=70991
2007-01-14 17:36:58 +00:00
Vladimir Krasnov 94ef49cd16 * SettingsPropertyValue.cs: fixed PropertyValue, default value of SettingsProperty should be desirialized or created
svn path=/trunk/mcs/; revision=70665
2007-01-08 17:07:52 +00:00
Miguel de Icaza 9b5517a743 2007-01-03 Tor Lillqvist <[email protected]>
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
2007-01-04 17:08:48 +00:00
Vladimir Krasnov 93c1274ba9 * SettingsPropertyValue.cs: fixed PropertyValue property, added default value convertation to property type
svn path=/trunk/mcs/; revision=70279
2006-12-31 12:46:45 +00:00
Vladimir Krasnov fec16bd9ab * SettingsBase.cs: implemented Item property
svn path=/trunk/mcs/; revision=69386
2006-12-12 08:46:32 +00:00
Sebastien Pouliot eb34b086f3 2006-11-09 Sebastien Pouliot <[email protected]>
* ApplicationSettingsBase.cs: Add special case when dealing with 
	StringCollection in the Properties property.


svn path=/trunk/mcs/; revision=67597
2006-11-09 14:58:20 +00:00
Vladimir Krasnov a3eddc657e * SettingsPropertyValue.cs: fixed PropertyValue property when it should be deserialized
* SettingsPropertyValueTest.cs: added tests of value deserealization

svn path=/trunk/mcs/; revision=67369
2006-11-05 11:53:45 +00:00
Atsushi Eno bf94f0c958 2006-10-13 Atsushi Enomoto <[email protected]>
* 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
2006-10-13 16:28:04 +00:00
Atsushi Eno 3426fe7468 2006-10-13 Atsushi Enomoto <[email protected]>
* 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
2006-10-13 15:13:38 +00:00
Atsushi Eno 49516ee2f9 2006-10-13 Atsushi Enomoto <[email protected]>
* 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
2006-10-13 12:57:22 +00:00
Andrew Skiba acd3129597 add support for requirePermission attribute.
svn path=/trunk/mcs/; revision=66186
2006-10-03 13:07:28 +00:00
Andrew Skiba e01b518e64 TARGET_JVM
svn path=/trunk/mcs/; revision=66064
2006-09-28 15:36:08 +00:00
Konstantin Triger d020097e71 * ConfigurationSettings.cs: remove CONFIGURATION_2_0 #if since NET_2_0
implies it.

svn path=/trunk/mcs/; revision=64228
2006-08-23 08:02:03 +00:00
Sebastien Pouliot 2092fed915 2006-07-31 Sebastien Pouliot <[email protected]>
* 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
2006-07-31 14:02:38 +00:00
Atsushi Eno fde86f617c 2006-06-29 Atsushi Enomoto <[email protected]>
* 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
2006-06-29 05:06:20 +00:00
Gert Driesen 9f1846d6ae * ConfigurationException.cs: BareMessage, Filename and Line properties
are only virtual on 2.0 profile.
* ConfigurationSettings.cs: Marked GetConfig (string) obsolete on
2.0 profile.

svn path=/trunk/mcs/; revision=61256
2006-05-30 10:06:47 +00:00
Atsushi Eno 73e29a4fb9 2006-05-17 Atsushi Enomoto <[email protected]>
* 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
2006-05-17 17:20:02 +00:00
Atsushi Eno 9dd0ca727f 2006-05-12 Atsushi Enomoto <[email protected]>
* ConfigurationSettings.cs : another System.Orgy insanity.


svn path=/trunk/mcs/; revision=60678
2006-05-13 17:56:04 +00:00
Atsushi Eno c1dd6bbdb0 2006-05-12 Atsushi Enomoto <[email protected]>
* 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
2006-05-12 18:19:29 +00:00
Atsushi Eno 521c0ea909 2006-05-10 Atsushi Enomoto <[email protected]>
* 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
2006-05-10 03:39:56 +00:00
Chris Toshok 5fbbb84363 * LocalFileSettingsProvider.cs (IsUserSetting): more
CONFIGURATION_DEP crap.

2006-05-05  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=60342
2006-05-05 20:46:02 +00:00
Chris Toshok 1368a39647 2006-05-05 Chris Toshok <[email protected]>
* 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
2006-05-05 19:55:12 +00:00
Atsushi Eno 3b17956214 2006-04-28 Atsushi Enomoto <[email protected]>
* System.dll.sources : added a bunch of missing
        * sys.configuration
          files.

        * NoSettingsVersionUpgradeAttribute.cs
          SettingsDescriptionAttribute.cs
          SettingsGroupDescriptionAttribute.cs
          SettingsGroupNameAttribute.cs
          SettingsManageability.cs
          SettingsManageabilityAttribute.cs
          SpecialSetting.cs
          SpecialSettingAttribute.cs : new files.
        * ConfigurationException.cs
          SettingsPropertyCollection.cs : minor API compat fixes.


svn path=/trunk/mcs/; revision=60029
2006-04-28 11:46:24 +00:00
Atsushi Eno 4ce9799629 2006-04-27 Atsushi Enomoto <[email protected]>
* SettingElement.cs : more circular dependency fix.


svn path=/trunk/mcs/; revision=60001
2006-04-27 18:07:27 +00:00
Atsushi Eno e0cae057de 2006-04-27 Atsushi Enomoto <[email protected]>
* SettingValueElement.cs,
	  SettingElement.cs : circular dependency hell fix.


svn path=/trunk/mcs/; revision=59998
2006-04-27 17:45:48 +00:00
Atsushi Eno 5a379ba8c6 2006-04-27 Atsushi Enomoto <[email protected]>
* 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
2006-04-27 15:40:42 +00:00
Atsushi Eno 332301b1c8 2006-04-26 Atsushi Enomoto <[email protected]>
* 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
2006-04-26 10:15:28 +00:00
Miguel de Icaza a5bd130af9 2006-03-11 Miguel de Icaza <[email protected]>
* 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
2006-03-11 19:07:56 +00:00
Atsushi Eno 1bb2d8e284 2006-02-01 Atsushi Enomoto <[email protected]>
* 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
2006-02-01 21:51:09 +00:00
Chris Toshok 758c042cec 2006-01-16 Chris Toshok <[email protected]>
* 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
2006-01-16 20:05:59 +00:00
Chris Toshok b1b6eeb1fa 2006-01-03 Chris Toshok <[email protected]>
* 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
2006-01-03 22:03:04 +00:00