You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -0,0 +1,62 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="TraceSection.cs" company="Microsoft Corporation">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if CONFIGURATION_DEP
|
||||
using System.Configuration;
|
||||
|
||||
namespace System.Diagnostics {
|
||||
internal class TraceSection : ConfigurationElement {
|
||||
private static readonly ConfigurationPropertyCollection _properties;
|
||||
private static readonly ConfigurationProperty _propListeners = new ConfigurationProperty("listeners", typeof(ListenerElementsCollection), new ListenerElementsCollection(), ConfigurationPropertyOptions.None);
|
||||
private static readonly ConfigurationProperty _propAutoFlush = new ConfigurationProperty("autoflush", typeof(bool), false, ConfigurationPropertyOptions.None);
|
||||
private static readonly ConfigurationProperty _propIndentSize = new ConfigurationProperty("indentsize", typeof(int), 4, ConfigurationPropertyOptions.None);
|
||||
private static readonly ConfigurationProperty _propUseGlobalLock = new ConfigurationProperty("useGlobalLock", typeof(bool), true, ConfigurationPropertyOptions.None);
|
||||
|
||||
static TraceSection() {
|
||||
_properties = new ConfigurationPropertyCollection();
|
||||
_properties.Add(_propListeners);
|
||||
_properties.Add(_propAutoFlush);
|
||||
_properties.Add(_propIndentSize);
|
||||
_properties.Add(_propUseGlobalLock);
|
||||
}
|
||||
|
||||
[ConfigurationProperty( "autoflush", DefaultValue=false )]
|
||||
public bool AutoFlush {
|
||||
get {
|
||||
return (bool) this[_propAutoFlush];
|
||||
}
|
||||
}
|
||||
|
||||
[ConfigurationProperty( "indentsize", DefaultValue=4 )]
|
||||
public int IndentSize {
|
||||
get {
|
||||
return (int) this[_propIndentSize];
|
||||
}
|
||||
}
|
||||
|
||||
[ConfigurationProperty( "listeners" )]
|
||||
public ListenerElementsCollection Listeners {
|
||||
get {
|
||||
return (ListenerElementsCollection) this[_propListeners];
|
||||
}
|
||||
}
|
||||
|
||||
[ConfigurationProperty( "useGlobalLock", DefaultValue = true)]
|
||||
public bool UseGlobalLock {
|
||||
get {
|
||||
return (bool) this[_propUseGlobalLock];
|
||||
}
|
||||
}
|
||||
|
||||
protected override ConfigurationPropertyCollection Properties {
|
||||
get {
|
||||
return _properties;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user