C# Class System.Diagnostics.TraceSourceTests.TestTraceListener

Inheritance: TraceListener
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Fail ( string message ) : void
Fail ( string message, string detailMessage ) : void
Flush ( ) : void
GetCallCount ( Method group ) : int

Gets the number of times any of the public methods on this instance were called.

TestTraceListener ( String name, bool threadSafe = false ) : System.IO
TestTraceListener ( bool threadSafe = false ) : System.IO
TraceData ( TraceEventCache eventCache, string source, TraceEventType eventType, int id ) : void
TraceData ( TraceEventCache eventCache, string source, TraceEventType eventType, int id, object data ) : void
TraceEvent ( TraceEventCache eventCache, string source, TraceEventType eventType, int id ) : void
TraceEvent ( TraceEventCache eventCache, string source, TraceEventType eventType, int id, string format ) : void
TraceTransfer ( TraceEventCache eventCache, String source, int id, string message, Guid relatedActivityId ) : void
Write ( string message ) : void
WriteLine ( string message ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Call ( Method method ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Fail() public method

public Fail ( string message ) : void
message string
return void

Fail() public method

public Fail ( string message, string detailMessage ) : void
message string
detailMessage string
return void

Flush() public method

public Flush ( ) : void
return void

GetCallCount() public method

Gets the number of times any of the public methods on this instance were called.
public GetCallCount ( Method group ) : int
group Method
return int

TestTraceListener() public method

public TestTraceListener ( String name, bool threadSafe = false ) : System.IO
name String
threadSafe bool
return System.IO

TestTraceListener() public method

public TestTraceListener ( bool threadSafe = false ) : System.IO
threadSafe bool
return System.IO

TraceData() public method

public TraceData ( TraceEventCache eventCache, string source, TraceEventType eventType, int id ) : void
eventCache TraceEventCache
source string
eventType TraceEventType
id int
return void

TraceData() public method

public TraceData ( TraceEventCache eventCache, string source, TraceEventType eventType, int id, object data ) : void
eventCache TraceEventCache
source string
eventType TraceEventType
id int
data object
return void

TraceEvent() public method

public TraceEvent ( TraceEventCache eventCache, string source, TraceEventType eventType, int id ) : void
eventCache TraceEventCache
source string
eventType TraceEventType
id int
return void

TraceEvent() public method

public TraceEvent ( TraceEventCache eventCache, string source, TraceEventType eventType, int id, string format ) : void
eventCache TraceEventCache
source string
eventType TraceEventType
id int
format string
return void

TraceTransfer() public method

public TraceTransfer ( TraceEventCache eventCache, String source, int id, string message, Guid relatedActivityId ) : void
eventCache TraceEventCache
source String
id int
message string
relatedActivityId Guid
return void

Write() public method

public Write ( string message ) : void
message string
return void

WriteLine() public method

public WriteLine ( string message ) : void
message string
return void