|
to GetSwitchValue. On 2.0 profile, leave the type conversion to
Switch implementations. Minor corrections to exception messages to
match MS.
* Switch.cs: Avoid unnecessary inits. On 2.0 profile, catch and
rethrow exceptions in setter for Value. Do not hide exceptions thrown
in GetConfigFileSetting. Only set value from config file if switch is
actually defined.
* SourceSwitch.cs: Use SwitchSetting for getting/storing value instead
of new field. In OnValueChanged, parse enum value.
* TraceSwitch.cs: If SwitchSetting is changed to value > 4, then set
it to Verbose. In OnValueChanged, parse value case-insensitively, and
assign it to SwitchSetting (to allow other integral values).
svn path=/trunk/mcs/; revision=86141
|
|
* System.dll.sources: added new sources:
TraceSource.cs, SourceLevels.cs, CorrelationManager.cs,
TraceEventCache.cs, TraceEventType.cs and SourceSwitch.cs.
* System_test.dll.sources: added new tests:
TraceSourceTest.cs and SourceSwitchTest.cs.
* Switch.cs : added missing .ctor(), Attributes, Value,
GetSupportedAttributes() and OnValueChanged().
* DiagnosticsConfigurationHandler.cs : added some hacky handler for
new "sources" element. Don't wrap another ConfigurationException.
* TraceListener.cs : added missing trace methods.
* TraceSource.cs, SourceLevels.cs, CorrelationManager.cs,
TraceEventCache.cs, TraceEventType.cs, SourceSwitch.cs:
added missing 2.0 stuff, mostly just stubs.
* TraceSourceTest.cs, SourceSwitchTest.cs : new tests.
* SwitchesTest.cs : added test for GetSupportedAttributes().
svn path=/trunk/mcs/; revision=71238
|