AsynchronousTraceListenerWrapper Constructor
Initializes a new instance of the AsynchronousTraceListenerWrapper class.
Namespace: Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners
Assembly: Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
public AsynchronousTraceListenerWrapper(
TraceListener wrappedTraceListener,
bool ownsWrappedTraceListener = true,
Nullable<int> bufferSize = 30000,
Nullable<int> maxDegreeOfParallelism = null,
Nullable<TimeSpan> disposeTimeout = null
)
'Declaration
Public Sub New (
wrappedTraceListener As TraceListener,
Optional ownsWrappedTraceListener As Boolean = true,
Optional bufferSize As Nullable(Of Integer) = 30000,
Optional maxDegreeOfParallelism As Nullable(Of Integer) = Nothing,
Optional disposeTimeout As Nullable(Of TimeSpan) = Nothing
)
public:
AsynchronousTraceListenerWrapper(
TraceListener^ wrappedTraceListener,
bool ownsWrappedTraceListener = true,
Nullable<int> bufferSize = 30000,
Nullable<int> maxDegreeOfParallelism = nullptr,
Nullable<TimeSpan> disposeTimeout = nullptr
)
Parameters
- wrappedTraceListener
Type: System.Diagnostics.TraceListener
The wrapped trace listener.
- ownsWrappedTraceListener (Optional)
Type: System.Boolean
Indicates whether the wrapper should dispose the wrapped trace listener.
- bufferSize (Optional)
Type: System.Nullable<Int32>
Size of the buffer for asynchronous requests.
- maxDegreeOfParallelism (Optional)
Type: System.Nullable<Int32>
The max degree of parallelism for thread safe listeners. Specify nulla null reference (Nothing in Visual Basic) to use the current core count.
- disposeTimeout (Optional)
Type: System.Nullable<TimeSpan>
The timeout for waiting to complete buffered requests when disposing. When nulla null reference (Nothing in Visual Basic) the default of InfiniteTimeSpan is used.
See Also
AsynchronousTraceListenerWrapper Class
AsynchronousTraceListenerWrapper Members
Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners Namespace